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@xxxxxxxxxx>