[Linux] Regular expressions

Tim Jones tim@timjones.com
Thu, 12 Oct 2000 03:09:36 -0400


On Wed, Oct 11, 2000 at 03:18:40PM -0400, Nick Seidenman wrote:
> On Wed, 11 Oct 2000, Dean Benson wrote:
> 
> > I have had several people drop that info to me.  I was curious, though.  Is
> > it geared for someone that already has an advanced understanding of perl or
> > would the complete moron (like me) be comfortable with it?
> 
> Don't need to be conversant in perl.  It's a good treatise on REs with
> lots of practical information and examples.

If you are familiar with the regular expressions that grep/egrep/fgrep/sed/awk
use, then you already know a good chunk of Perl's REs.  Perl adds quite a bit
to it.

And you don't have to know every little detail in order for it to be
useful.  I know of the top of my head maybe 55-60% of what REs can do
in Perl, and I get by pretty nice.  I have to look up something once
in a while, but that's no crime.

Regular expressions are also useful in Python 
(see the 're', 'regex', 'regsub' modules), and even Java (if you
have the com.oroinc.OroMatcher libraries, which are wonderful
(even though Oro, Inc. the company died years ago).

Tim
-- 
-----------------------------------------------
 Timothy Jones - LinuxTampa.com - 813-65-LINUX
Open Source Programming, Databases & Networking
-----------------------------------------------