1 use re Debug=>qw(DUMP EXECUTE OFFSETS TRIEC);
3 XY => 'X(A|[B]Q||C|D)Y' ,
4 foobar => '[f][o][o][b][a][r]',
6 'ABCD' => '(?:ABCP|ABCG|ABCE|ABCB|ABCA|ABCD)',
7 'D:\\dev/perl/ver/28321_/perl.exe'=>
8 '/(\\.COM|\\.EXE|\\.BAT|\\.CMD|\\.VBS|\\.VBE|\\.JS|\\.JSE|\\.WSF|\\.WSH|\\.pyo|\\.pyc|\\.pyw|\\.py)$/i',
12 my ($str,$pat)=splice @tests,0,2;
14 $pat="/$pat/" if substr($pat,0,1) ne '/';
15 # string eval to get the free regex message in the right place.
17 warn "$str"=~$pat ? "%MATCHED%" : "%FAILED%","\n";