Re: OT: simple regex question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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 <[email protected]>

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux