Re[2]: Help requested for REGEX
Didier <[email protected]> Mon, 27 Jun 2005 02:15:55 +0200
| Newsgroups | gmane.mail.the-bat.devel |
|---|---|
| Message-ID | <[email protected]> |
Dear Roelof, Thanks a lot it works perfectly! -- Didier -- Monday, June 27, 2005, 12:53:51 AM, you wrote: RO> Hallo Didier, RO> On Sun, 26 Jun 2005 11:16:52 +0200GMT (26-6-2005, 11:16 +0200, where I RO> live), you wrote: D>> I use to receive email containing the same sentence "Waiting for agreement" D>> I want by replying keeping the same text as in original message text BUT D>> replacing "Waiting for agreement" for "Pending" RO> Try this: RO> %SetPattRegExp='(?is)(.*?)Waiting for agreement(.*)'%- RO> %RegExpBlindMatch='%Text'%- RO> %SubPatt='1'%- RO> Pending RO> %SubPatt='2'%- RO> Unless you're giving more info about the message, this is as precise RO> as I can get. 3.5.30 2600 5 Windows XP