Does anybody know where I can find some very newbie friendly books/papers/tuts/anything on Regular Expressions? I'm battling with it and I do not seem to get a hold on the subject.
Thanks in advance!
Printable View
Does anybody know where I can find some very newbie friendly books/papers/tuts/anything on Regular Expressions? I'm battling with it and I do not seem to get a hold on the subject.
Thanks in advance!
Just acknowledge the connection between regular expressions and finite automata (DFA/NFA) and you're golden.
take a look at these. top quality tutorials and imo very easy to comprehend.
You Don’t Know Anything About Regular Expressions: A Complete Guide | Nettuts+
Regular Expressions for Dummies: Screencast Series | Nettuts+
and a cheat sheet to get you started on the real thing :)
http://www.addedbytes.com/cheat-shee...t-sheet-v2.png
For linux, you can get the package, "regexxer". This tool searches through files on your computer (such as *.php (all PHP files) or something specific like test_regex.txt) to search/replace given a regex expression.
Of course, you can edit the file, too.
for learning REGEX on *nix systems, this package is great when used with a file such as test_regex.txt to store the text..
Text such as
Might be a good starting point.Code:abcdefghijklmnopqrstubwxyz1234567890-=[]\;',./!@#$%^&*()_+{}|:"<>?
Make sure you go into Edit->Preferences and change the high-light color, as for some reason it defaults to nothing (on KDE; Kubuntu).
To install this, use your package manager, or these commands:
Spoiler:
Once installed, it's stored in Applications->Development.. But if your Desktop Environment doesn't support a search function by now, you should switch to something that does.. Like KDE4.3, Gnome3 or Unity.