Hi!
I need to use regular expressions with backslash, both in the string and the regexp too. I cant make it work!
With quotemeta or "" it takes out the single backslash from it, but works. (I don't want this)
Any other possibilities I tried, didn't worked.
my $string = 'words AUTH\SYS words';
my $regxp = '.*AUTH\SYS.*';
print "OK" if ($string =~ /$regxp/);
Thanks for any help!
I need to use regular expressions with backslash, both in the string and the regexp too. I cant make it work!
With quotemeta or "" it takes out the single backslash from it, but works. (I don't want this)
Any other possibilities I tried, didn't worked.
my $string = 'words AUTH\SYS words';
my $regxp = '.*AUTH\SYS.*';
print "OK" if ($string =~ /$regxp/);
Thanks for any help!