If I understand your question right, you are reading "Learning Perl", but find the chapter about regular expressions too difficult, so that you can't understand it, and you are now looking for an easier introduction. Correct?
I think a VERY easy intro can be found here: http://www.somacon.com/p127.php. After you understood this, go back to your book and read the chapter again.
This is another introduction: http://www.enginsite.com/Library-Perl-Regular-Expressions-Tutorial.htm. Though this is on about the same level than the chapter in Learning Perl, maybe it helps you to have the same subject covered in a different way.
--
Ronald Fischer <ynnor@mm.st>
| [reply] [d/l] |
Thanks For a specific link i'll start reading it.
| [reply] |
in addition to reading the book (Learning Perl is a GREAT starting book)...
Please...
Work through the examples.
You'll learn a million times by doing, and trying it, than you will by reading a thousand references.
| [reply] |
Hi hasnainzeenwala,
Here's a pretty good list of resources for learning Regular Expressions: http://www.regular-expressions.info/books.html
The site itself is a good resource. I believe Jeffrey Friedl (author of Mastering Regular Expressions) started and/or is involved with the site in some way.
Speaking of Mastering Regular Expressions, * that is definitely a book you should have. Don't worry too much about the title. The book starts off really nicely and covers a lot of ground by the time you've finished the chapters on using Regexes in Perl.
* The other thing I would recommend is to make sure your text editor gives you the ability to do search and replace with regular expressions. (If you look in your software's documentation it may say something like: "do search and replace with grep". That's Ok, that's what you want.) Use the text editor for EVERYTHING (emails, love letters, emailed love letters, etc.) You will quickly learn how often you can and will want to use regular expressions.
- * I would also recommend picking up either a book on UNIX like: UNIX in a Nutshell or UNIX Power Tools as both of them have coverage of Regular Expressions appropriate for beginners. However, and everyone may not agree with me here, you can also check out sed & awk which can be argued is entirely about pattern matching (what regular expressions do).
- * I'd also recommend a simple regular expressions application. I use Reggy for Mac OSX but there are a few others out there like RegexBuddy.
UPDATE May.26.2011: Added links to UNIX books.
"...the adversities born of well-placed thoughts should be considered mercies rather than misfortunes." — Don Quixote
| [reply] |
I didn't know that it was such a big topic to be written in a book, thank you. I'll use it ASAP.
| [reply] |
| [reply] |
| [reply] |
| [reply] |