Good evening Michael L. Cusac ! On Thu, 2 Oct 2003 10:47:02 -0500 GMT your local time, which was 02.10.2003, 17:47 (GMT+0200) where I live, you (Michael Cusac) wrote in <mid:[EMAIL PROTECTED]>:
> I thought that %REGEXPTEXT captured the highest numbered subpattern, > in this case 2, but it seems to be capturing subpattern 1. I'm quite sure it does. Try this: ^subject:\s(?:\*\*\*\sGMX\sSpamverdacht\s\*\*\*\s)?(.*?)$ This escapes the first parentheses and it does not count as a subpattern [...] >And if I want to > capture a subpattern other than 0 or 1 I will have to use > %SETPATTREGEXP, %REGEXPBLINDMATCH, and %SUBPATT ? Try %SETPATTREGEXP="^subject:\s(\*\*\*\sGMX\sSpamverdacht\s\*\*\*\s)?(.*?)$"%- %REGEXPBLINDMATCH="%HEADER"%- %SUBPATT="2" I hope the macro is %HEADER?? HTH -- Best regards, Gerd ======================================================= Tutorial for using regular expressions with TheBat! www.regenechsen.de ------------------------------------------------------- I am a human being: Do not fold, spindle or mutilate: Hippy slogan. ------------------------------------------------------- now playing: WDR2 :-) ________________________________________________ Current version is 2.00.6 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html

