Answer the question
In order to leave comments, you need to log in
How to combine two regular expressions?
We have a string, we need to find out whether both templates are included in it, the order of occurrence is not important.
i.e. replace : if ($str =~/$pattern1/g && $str =~/$pattern2/g)
with something like:if ($str =~/$pattern1 && $pattern2/g)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question