On Tue, 2008-12-02 at 12:35 -0500, Bowie Bailey wrote:
> Karsten Bräckelmann wrote:

> > Btw, you need to escape the hash '#', not because this is an RE, but
> > because it is Perl. :)
> 
> You don't need to escape the hash in a Perl RE unless you are using hash
> characters for the RE boundary markers.

You're right. :)  My bad. You need to escape the hash for SA, though.


> > That's easy.  /\bPO\b/ will do -- might hit on spam as well, though,
> > since it is really short.
> 
> Except that RE won't match "PO12345" since letters and numbers are both
> word characters.

*sigh*  Yes, I realized that reading your previous post. Thanks for
spotting these, Bowie.


-- 
char *t="[EMAIL PROTECTED]";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}

Reply via email to