Hi, Sometime I want to find a line that contains 2+ patterns components, but I don't mind the order of the components in the line. The naïve approach is to do one of the following code options
1. /a.+?b/ or /b.+?a/ 2. /(?:a.+?b)|(?:b.+?a)/ (this one probably is more efficient) But I don't feel comfortable with any of the above (and when there are more than 2 components it gets worse). Is there a better way of doing it ? Yossi
_______________________________________________ Perl mailing list [email protected] http://mail.perl.org.il/mailman/listinfo/perl
