pan-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pan-users] Re: Query on REGEX syntax


From: Duncan
Subject: [Pan-users] Re: Query on REGEX syntax
Date: Tue, 17 Feb 2004 06:04:42 -0700
User-agent: Pan/0.14.2.91 (As She Crawled Across the Table)

Marc Schwartz posted <address@hidden>,
excerpted below,  on Mon, 16 Feb 2004 10:49:48 -0600:

> I have tried:
> 
> \bR\b
> 
> and 
> 
> [[:<:]]R[[:>:]]
> 
> and
> 
> [[:space:]]R[[:space:]]
> 
> and various other incantations. None of these seem to work properly in
> only highlighting posts with "R" as a standalone character (ie.
> surrounded by whitespace).

What about \sR\s  ?  (\s=space)

You may also need to account for an occurrence at the beginning or end of
the subject line.  Perhaps what you need there is a negative list-match,
as in..

[^[:graph:]]R[^[:graph:]]  ([:graph:]=printable chars excluding whitespace)

Or, try the first, but create separate tests for ^R\s and \sR$, if needed.

I'm by no means a regex expert, but I'd try the above and see if one of
those works.

Also note that AFAIK PAN's matching is case insensitive by default, so it
will also match "r" by itself.  I'm not sure how to turn that off, since
I'm used to having to turn it on for anything else I'm doing with regex.

-- 
Duncan - List replies preferred.   No HTML msgs.
"They that can give up essential liberty to obtain a little
temporary safety, deserve neither liberty nor safety." --
Benjamin Franklin






reply via email to

[Prev in Thread] Current Thread [Next in Thread]