Operating System - HP-UX
1829671 Members
9568 Online
109992 Solutions
New Discussion

basic regular expressions

 
Jose Ramirez_6
Advisor

basic regular expressions

I need to know how make basic regular expresion
and the name and significance of symbol that it use.


thank you.
jose ramirez
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: basic regular expressions

Hi:

A good starting point is the man pages:

# man 5 regexp

Regards!

...JRF...
Helen French
Honored Contributor

Re: basic regular expressions

Hi,

This may help you:

http://www.docs.hp.com/hpux/onlinedocs/B2355-90131/B2355-90131.html


Shiju
Life is a promise, fulfill it!
A. Clay Stephenson
Acclaimed Contributor

Re: basic regular expressions

Hi Jose:

I'm going to be a bit of a radical here and suggest that since you are leanring regular expressions anyway, why not learn regular expressions on steroids - use Perl. Just as example, in basic RE to find whitespace you need to look for spaces, tabs, LF's, CR's, and
FF's explicitly. That's not hard, merely tedious. In Perl's re, all of that is simply \s or \S - non-whitespace. Man perlre for details. The nice thing about this approach is that you get the best of grep, awk, sed, and the shell rolled into one and this stuff will also port to Windows.

Food for thought, Clay
If it ain't broke, I can fix that.
harry d brown jr
Honored Contributor

Re: basic regular expressions

Jose,

I agree with Clay, that "perl" has the best pattern matching available in the free world.


live free or die
harry
Live Free or Die