perl -lpe'BEGIN{$r=pop} $_=/$r/?"Yes, $&":"No"' your_regex_here [download]
Makeshifts last the longest.
In reply to Re: Interactively Test Regexes by Aristotle in thread Interactively Test Regexes by kelan