I have a string $str. It should contain substrings ‘abc’, ‘pqr’ and ‘xyz’. Order of the substrings does not matter.
Is there a regular expression that does this check one-time?
I don’t want to write 3 if conditions i.e if( $str =~ /abc/ && $str =~ /pqr/ && $str =~ /xyz/ ).