in reply to regex won't match with utf8 enabled...
so it is possible that you have a bug in 5.6.1.use utf8; use warnings; print "matched\n" if 'pf1ad1%/pf2%2Fad2/pdad3/pfad4/filename' =~ m|^((?x-ism: [^\?]*? ))/((?x-ism: [ +^/\?]*? ))$|;
One other note: you don't need to escape '?' inside a character class. This works just as well:
-Markuse utf8; use warnings; print "matched\n" if 'pf1ad1%/pf2%2Fad2/pdad3/pfad4/filename' =~ m|^((?x-ism: [^?]*? ))/((?x-ism: [^ +/?]*? ))$|;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: regex won't match with utf8 enabled...
by Beechbone (Friar) on Sep 24, 2003 at 17:20 UTC |