You can build and test regular expressions (regexps) on UNIX® systems in several ways. Discover the available tools and techniques that can help you learn how to construct regular expressions for various programs and languages.
A regular expression is a notation for describing a pattern that matches a set of strings and this is common across many programs and languages. These various regexp implementations differ to some degree in the finery of their details, but the principles for learning to build regexps are common for all.
For example, in Linux there are different grep implementations such as the ubiquitous grep, egrep, fgrep and so on. And each of them differ from the other in slight manner. egrep and fgrep are generally considered to be superior to grep and support additional features not available in grep. Over a year back, I had posted about a very useful tool in KDE called kregexpeditor which helps one learn to use regular expressions.
Michael Stutz - the author of "The Linux cookbook" and with over 20 years experience under his belt has written a very informative article describing some useful tools and techniques for learning to build and hone regexps across a range of UNIX® applications. He walks one through useful tasks such as highlighting matches,showing only the matches and not the lines, calling a wizard and studying docs.
No comments:
Post a Comment