Or for Win32:perl -lpe'BEGIN{$r=pop} $_=/$r/?"Yes":"No"' your_regex_here
perl -lpe"BEGIN{$r=pop} $_=/$r/?'Yes':'No'" your_regex_here
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Interactively Test Regexes
by Aristotle (Chancellor) on Mar 16, 2003 at 00:21 UTC | |
|
Re: Interactively Test Regexes
by halley (Prior) on Apr 11, 2003 at 14:18 UTC | |
|
Re: Interactively Test Regexes
by Murcia (Monk) on Aug 05, 2003 at 15:35 UTC |