in reply to Re^2: a regex which can detect if a string have all of some characters
in thread a regex which can detect if a string have all of some characters

.. or my favorite formulation:
my $re = join '', map { "(?=.*?$_)" } map { quotemeta } @a;
  • Comment on Re^3: a regex which can detect if a string have all of some characters
  • Download Code