Bash and Regex

CrazYmonkeY159

Expert Member
Joined
Sep 13, 2007
Messages
2,142
Reaction score
0
Location
CPT/PE
Does anyone know any cool resources or tutorials i can use which can teach me how to use bash scripting and regular expressions? I am by nature not a hacky Unix type of user, but i feel as if i just need to know this just because ;O

another question is, do all regex engines (for all intensive purposes) work the same? or can regular expressions to do the same thing differ from 1 regex engine to another? (will the same regex work in Java/Python/QtC++)
 
Look for a Regex cheatsheet and also look at a free downloadable AWK/GAWK ebook.

On universal regex, well it depends on the implementation of the function by the programmer. I code mostly in PHP and depending on the function, the regex can differ. But regex is a power Ninjaz skillz that will so help you when you need it.
 
regex across development platforms do differ, but not by much. The best is to Google for a tutorial and start playing around with some of it to learn (it's quite powerful) and once you grasp how it works can make your life much much MUCH easier... especially with *spit* user generated data
 
Top
Sign up to the MyBroadband newsletter
X