Stop avoiding regular expressions damn it
1–10 of 55 posts
Re: Stop avoiding regular expressions damn it
#2Re: Stop avoiding regular expressions damn it
#3What's a good resource for learning reg exp?
Re: Stop avoiding regular expressions damn it
#4You will profit from it for the rest of your career.
(There's also a Regex short reference and a Regex cookbook by O'Reilly...)
Re: Stop avoiding regular expressions damn it
#5What's a good resource for learning reg exp?
If I recall correctly I learnt the basics from MSDN documentation and later more thoroughly when I first came across Perl. Either of these are pretty decent choices, too. :)
Re: Stop avoiding regular expressions damn it
#6What's a good resource for learning reg exp?
Re: Stop avoiding regular expressions damn it
#7What's a good resource for learning reg exp?
Eg: /^([a-z]*)$/ this translates into my brain to: a string that starts with a capture group of 0-N characters between a-z and also ends with it.
Then it's really easy.
Re: Stop avoiding regular expressions damn it
#8THE single best ressource to really learn how to deal competently with regex is still Jeffrey Friedl's book "Mastering Regular Expressions". You will profit from it for the rest of your career. (There's also a Regex short reference and a Regex cookbook by O'Reilly...)
Re: Stop avoiding regular expressions damn it
#9I noticed my coworker was going out of his way to use string manipulation, writing many lines of code instead of a simple regular expression. When I asked why, he explained that he didn't know regular expressions, but more importantly that he felt that he had read a lot of posts on Stack Overflow discouraging use of regular expressions. From what he had read, he felt that it was better practice to avoid regular expressions. Although this could be anecdotal, there may be a real danger here that inexperienced programmers are getting the wrong message, that regular expressions are somehow bad in most situations and not worth learning.
Re: Stop avoiding regular expressions damn it
#10What's a good resource for learning reg exp?