Understanding UNIX and Linux Regular expressions (regex)

by Vivek Gite on May 7, 2007 · 0 comments

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

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

We're here to help you make the most of sysadmin work. So, subscribe!

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 12 + 4 ?
Please leave these two fields as-is:
Are you a human being? Solve the simple math so we know that you are a human and not a bot.



Previous post:

Next post: