Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Regex, the jungle survival skillby davies (Prior) |
on Mar 10, 2016 at 14:44 UTC ( [id://1157299]=note: print w/replies, xml ) | Need Help?? |
You can do a lot of programming without using a regex. I know. I did it. But if you use sites like this, you will see posts that mention regexes and then, when you are trying to write something, you will realise that a regex is the best tool. That's the best tutorial you can find - a need to solve a problem of your own. Unless you have to pass an exam, don't try learning something you don't use, as you will quickly forget what you learned. Once you get to wanting to learn something, try writing the regex yourself. If you get stuck, post here with what you are trying to do and what you have written. When I've done this, I've found the Monasteriat extremely helpful. As others have said, some regexes are very simple. But as I think you realised before the other posts, regexes are a very powerful tool (I don't know them at all well, but I know that much). And in addition to the tools others have mentioned, I have recently taken to using Damian Conway's Regexp::Debugger, which I have found most helpful. Regards, John Davies
In Section
Seekers of Perl Wisdom
|
|