- or download this
#!perl -w
...
shemp,curly,joe
larry,moe
larry,curly,moe
- or download this
>re.pl 1
olive&(popeye|bluto)
...
^((?=.*\b(moe)\b)((?=.*\b(shemp)\b)|(?=.*\b(curly)\b)|(?=.*\b(joe)\b))
+(?=.*\b(larry)\b))
----
larry,curly,moe
- or download this
die "Invalid expression <$test>\n"
if $test =~ /[^a-z\s\&\|\(\)]|^\s*[\&\|]|[\&\|]\s*$|[\&\|]\s*[\&\|]|
+[\&\|]\s*\)|\(\s*[\|\&]/;