Thanks Kai!

> -----Original Message-----
> From: Kai MacTane [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, October 15, 2003 4:40 PM
> To: [EMAIL PROTECTED]
> Subject: [SAtalk] Regex Detail (was RE: Popcorn, Backhair, and Weeds)
> 
> 
> At 10/15/03 11:37 AM , Larry Gilson wrote:
> >Keep adding characters as needed.  Additionally, since the 
> script tags
> >characters inside '< >' are optional, you could reduce the 
> complexity of the
> >rule to:
> >
> >   # I don't think '!' needs escaping - true/false?
> >   /[>\s]\w{1}<[\w\s\$&!-]{0,150}>\w{1}\W/
> 
> Having recently checked on some stuff in the O'Reilly regex 
> book... No, ! 
> doesn't need escaping inside a character class. But - *does* need it, 
> unless it's the first character. So I'd say:
> 
> /[>\s]\w{1}<[-\w\s\$&!]{0,150}>\w{1}\W/
> 
>                                                  --Kai MacTane



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to