Re: regex/macro help needed
On Sun 29 August 2004, 22:40:41 +1000, Jurgen Haug wrote: > ah, I guess I get it now (for this time). You mean, my mistake was to think 'hey > I am giving him the :-* as a pattern, so I can forget about it, and after that I > started looking for the colon, which came later :-* RE: <-- here, BUT regex > couldn't care less about what *I* am thinking, since it will always look for the > first colon, no matter what pattern I am throwing at it, since this \A thing > tells him to do exactly that! right? That's right. It is always looking at the very beginning for zero or one colon, followed by zero or more spaces, followed by zero or one sets of square brackets with anything in them. Then it looks for any of the expressions re, aw, antwort, etc. -- Robin Using The Bat! v2.12.00 on Windows XP 5.1 Build 2600 Service Pack 1 Current version is 2.12.00 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: regex/macro help needed
On Sun 29 August 2004, 16:09:31 +1000, Jurgen Haug wrote: > thank you! that did the trick! So this \A:? thingy isn't just looking for a > colon at the END? like actually it's :-* RE: and I thought that's the colon it's > looking for. This stuff is voodoo. The "\A" locks the pattern to the beginning of the text you are searching, so "\A:?" matches zero or one colon at the beginning if the text. If you then search for ":-\*" further down the pattern, it will be looking for a second colon (because \A:? matches the first) followed by a dash and an asterisk. -- Robin Using The Bat! v2.12.00 on Windows XP 5.1 Build 2600 Service Pack 1 Current version is 2.12.00 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: regex/macro help needed
On Sun 29 August 2004, 2:44:26 +1000, Jurgen Haug wrote: > I have a little problem with a subject-modifier macro and need some help. > > Thank you for looking here: http://www.safaribears.de/help/regex.html As I understand it, you are trying to take a subject like ":-* Re: something" and extract "something" If that is correct, the problem with the regex is not with what you have added, it is that it starts with "\A:?". This matches the first colon, then the ":-\* re" that you have added doesn't match what is left. You could add "-\* re" instead, or take out the ":?" at the beginning of your regex line. -- Robin Using The Bat! v2.12.00 on Windows XP 5.1 Build 2600 Service Pack 1 Current version is 2.12.00 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: regex/macro help needed
Hello! JH> I have a little problem with a subject-modifier macro and need some help. JH> Thank you for looking here: http://www.safaribears.de/help/regex.html Maybe escape dash as well?... -- Andrey Current version is 2.12.00 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html