I need help with a filter using a regular expression in v3. I have tried many many times and failed completely. I think I am following the rules but The Bat does not seem to follow them.I am not experienced in PERL so hope I am just being very ignorant.
I want to find any posts that have any of the following complete strings (case is not relevant): *ist *istd *ist-d ist istd ist-d (In case you are wondering, the ist refers to a particular Pentax camera and I want to filter out messages about this camera from a broader mailing list.) I do, of course, want to avoid matching on any longer words that have ist or istd in them (beginning, end or middle). Firstly, searches on "message source" do not seem to work at all. Anything in the regular expression other than a simple string seems to cause no messages to be parsed. I have therefore had to use the same regular expression twice linked with an OR to search both "subject" and "text". Secondly, many many attempts seem to fail if the string falls at the end of the subject line. I thought something like this would do the job: ((?i)\b\*?istd?\b) which seems to do the trick in The Regex Coach. (I note I can drop \* as the * marks a word boundary anyway.Similarly, if I get to a - then I have found a match and do not need to check for -d.) However, The Bat does not seem to like the (?i) construction so I have replaced this thus: \b[iI][sS][tT][dD]?\b Still very limited joy. A few messages are selected but nowhere near as many as should be. (I have about 6000 messages to search around 2000 of which should be targeted.) Please can anyone point me in the right direction. I am getting very very frustrated and do not find The Bat's help at all useful. (It does not look like it has been updated for version 3 either.) TIA. -- Stuart mailto:[EMAIL PROTECTED] "if you are not confused : you are misinformed" ________________________________________________ Current version is 3.00.00 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html