3 ms·
Regexes are a handy tool to know regardless of the language. And something I think is worth learning. Mastering Regular Expressions is a good book to read as
by bavcyc 15y ago
Regexes are a handy tool to know regardless of the language. And something I think is worth learning.
Mastering Regular Expressions is a good book to read as Mr. Friedl does a good (great?) job of explaining the pluses and minuses of regular expressions in a readable manner.
If all you want is how to use regular expressions then there are plenty of man pages and internet documents which provide examples that you can learn from without reading Mastering Regular Expressions.
You might look at the Ruby documentation to see how Ruby does things. And a quick search using Ruby regular expression provided this link: http://rubular.com/ http://rubular.com/ which is a utility to test regexes. There are several other links immediately following this one which appear to be tutorial or information for what you are looking for.