Discussion Locked

Are regular expressions a 'must-know'?

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Tell us what you think about regular expressions, as featured in this week's Software Development e-newsletter. Do you agree that all developers must know regular expressions? Have you ever run into problems when using regular expressions? If so, what were they? How have regular expressions helped you perform your job better?

5 replies

by praulerson

It was interesting that you present a knowlesge of regex as necessary to developers, and then reference only Windows developers - or .NET developers more accurately.

RegEX, as you explain it, has been the norm in the UNIX environment for more than 20 years. And not only with developers, but also with almost every non-GUI user, since regex is central to the most common editor under UNIX. (vi and ex.)

It has also been a central part of Macintosh development environment for longer than there has been a Macintosh - it was included with the Lisa development package around 20 years ago too.

I guess this means that even though .NET doesn't really introduce anything new to developers outside the Microsoft universe, developers within the Microsoft universe will begin to learn what else is available in the real world.

You might want to reccomend that Windows users pick up a copy of VIM and get used to how regex operates that way. Vi actually takes only about 20 mins to learn, and less than a day to become proficient with.

by mike owens

The article was targeted at developers who have never developed for Unix. As you pointed out if a developer had done any Unix work then they are likely to already be familiar with Regular Expressions.

by wayne m.

"Regular Expressions," as the article itself points out, is a meaningless term outside of the the context of use.

If you use grep, then yes you should learn how to do basic searches with grep. If you Microsoft "Find" or "Find in Files" you should know how it works. If you use the SQL LIKE command, you should know how that works.

Outside of a specific application, I don't know what it means to "know regular expressions." No, I do not believe generic knwoledge of regular expressions isa must know.

by mike owens

Since you can use reqular expressions in a development context. For instance you can use them to check an input field in ASP. I would disagree.

by snatishi

All Wayne was pointing out is that Regular Expressions are not necessary for development. There are alternatives to Regular Expressions. What I think is funny is that the newbies to programming see this as a new concept, but it has been around as long as Unix has been around.

This discussion is closed to new replies.