On Fri 10-Sep-04 3:04pm -0400, Stuart Moore wrote:
> Guys, thanks for suggestions.
>>> Although difficult to do exactly what you want, you can come pretty
>>> close with:
>>> \*?\bist-?d?\b
> For example, the following subject lines are not
> matched (I also changed the pattern to have a capital D in
> it just in case):
In v3, I believe, regex is caseless - you don't have to
worry about case.
> Re: *ist D for me
> Re: *ist (35mm) custom functions & 360FGZ flash
> Re: HELP - Firmware 1.11 for *ist D
> *ist D purchased on a whim
> RE: ENABLED limited ist D!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> RE: Batteries for the istD
> RE: IST D and Pentax-F 1.7x AF adapter
> Re: IST-D discontinued?
> Paint Shop Pro 9 built in RAW support for *ist D
> istD price change
Hmm, using RegEx Test, hits were found in all of those
lines.
> Also might I be right in thinking that in principle the
> * marks a word boundary anyway so \*? is redundant and -?
> is also redundant as I am also interested in "ist" matches
> and - marks a word boundary.
It is because * and - are word boundaries, I mentioned that
it is "difficult to do exactly what you want.
\*? is redundant if you're not going to use the result.
That is "*ist" be matched including it. "ist" will be
matched in "*ist" if you don't include it.
But the ending isn't included properly anyway. So simply
\bistd?\b
is probably good enough :-)
BTW, anyone trying this with a non-caseless implementation
should use:
(?s)\bistd?\b
--
Best regards,
Bill
________________________________________________
Current version is 3.00.00 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html