<br><br><div class="gmail_quote">On Sun, Aug 23, 2009 at 12:13 PM, Ken Clarke <span dir="ltr">&lt;<a href="mailto:k_clarke@perlprogrammer.net">k_clarke@perlprogrammer.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Late to the party but I love regexes.<br>
<br>
Patrick&#39;s /[^\w\W]/ made me think of /[\d\D]/ or /[\s\S]/ or any character class containing complementary subsets<br>
<br>
My own invention is /^^/  or /$$/ or any match which can only occur once occuring twice<br>
</blockquote><div><br>Neither of these works for the intended purpose.<br><br>/^^/ always matches, which stands to reason, since after you match the front, you&#39;re still at the front. <br><br>$$ is an interpolated scalar variable.<br>


<br>    print &quot;match&quot; if $$ =~ /$$/; # prints &quot;match&quot;<br><br>Also, even though $$ is readonly, I could easily use Inline::C or some XS code to allow me to do this:<br><br>    $$ = &quot;&quot;; $anything =~ /$$/;<br>
 
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Still, my vote goes to Ingy&#39;s /.^/ because not only does it use the least characters (at least I havn&#39;t seen any single character candidate), but it also uses the least ink :)<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Ken <br>
</blockquote></blockquote><div><div></div><div class="h5">
<br>
_____________________________________________________________<br>
Seattle Perl Users Group Mailing List<br>
    POST TO: <a href="mailto:spug-list@pm.org" target="_blank">spug-list@pm.org</a><br>
SUBSCRIPTION: <a href="http://mail.pm.org/mailman/listinfo/spug-list" target="_blank">http://mail.pm.org/mailman/listinfo/spug-list</a><br>
   MEETINGS: 3rd Tuesdays<br>
   WEB PAGE: <a href="http://seattleperl.org/" target="_blank">http://seattleperl.org/</a><br>
</div></div></blockquote></div><br>