in reply to Operator for "these expressions, in any order"

/(?=.*X)(?=.*Y)(?=.*Z)/
Although you might have to constrain the .* to something nicer.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re: •Re: Operator for "these expressions, in any order"
by Roger (Parson) on Feb 17, 2004 at 15:52 UTC
    Just another Randal... I like this solution better. :-)

Re: Operator for "these expressions, in any order"
by Abigail-II (Bishop) on Feb 17, 2004 at 16:15 UTC
    That would match on "XYZZ", of which I got the impression the OP doesn't want a match.

    Abigail