About nixCraft

Topics

Understanding UNIX and Linux Regular expressions (regex)

Posted by Vivek Gite [Last updated: May 7, 2007]

Trust me, if you know regex very well you are a UNIX guru. Regex is nothing but a string that is used to describe or match a set of strings, according to certain syntax rules.

Many new user think that learning to use regex is difficult, but if you know the fundas (read as basics) it is actually quite easy. Remember you can use regex not just under UNIX but also under PHP, Perl, VB.NET and many other modern programming languages.

This article offers some good introduction for finding and manipulating text using regex:

Virtually all non-trivial problems require you to filter good data from bad. Discover the many UNIX(R) command line utilities that use regular expressions to discern the relevant from the irrelevant.

=> Speaking UNIX, Part 9: Regular expressions

Tell us how we're doing: Please answer a few questions about your experience to help us improve nixCraft.

You may also be interested in other helpful articles:

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2004-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.