OT: simple regex question

Dario Lesca d.lesca at solinos.it
Mon Apr 23 12:41:23 UTC 2007


Il giorno lun, 23/04/2007 alle 13.19 +0100, Matt Davey ha scritto:

> It's pretty much as you write it above, just a bit more concise to fit
> on the command line:

> echo "aa bb cc dd" | perl -ne 'if (/(?=.*\bbb\b)(?=.*\bdd\b)/) {print
> "found\n"} else {print "not found\n"};'

Ok Matt.

Many thanks for this help...

-- 
Dario Lesca <d.lesca at solinos.it>




More information about the fedora-list mailing list