I
ikeon
The case is that I need to search for a couple of strings in a line. I
don't know the order that they will be matched and I need them all to
be matched.
like if (string1|string2|string3) can find one of the strings (OR) , I
need it to match all of the strings (like AND) and again - I don't
know the order that they will appear.
I know how to do it if I will check the line 3 times in some loop, but
I need to know if it can be done in one regular expression.
Thanks,
don't know the order that they will be matched and I need them all to
be matched.
like if (string1|string2|string3) can find one of the strings (OR) , I
need it to match all of the strings (like AND) and again - I don't
know the order that they will appear.
I know how to do it if I will check the line 3 times in some loop, but
I need to know if it can be done in one regular expression.
Thanks,