Re[2]: need help with RegExp
alien <[email protected]> Tue, 12 Jul 2005 11:52:39 -0300
| Newsgroups | gmane.mail.the-bat.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Konrad, Monday, July 11, 2005, 3:06:18 PM, you wrote: >> <message source> matches all as Regex <http://.*\.scr> action <Set > ^^^^^^^^^^^^^^^^^^^^ > Not "matches all as Regexp", only "match". > And try this regexp: >>(?s)http://[^\>>]*\.(scr|exe|pif|whatever) >> [^\>>] means: every char exept ">". Konrad has kindly suggested the expression above but no joy. I'm not too sure about the (?s) he put in front so I tried this one as well but it also didn't work. https?://[^\>>]*\.(scr|exe|pif) There is a link to a RegExp testing page that might give a clue to what's going on. http://www.quanetic.com/regex.php If I test using the "preg (Perl)" option I get no match. But using the "ereg (POSIX)" gives a match! So I'm assuming TB! uses "preg (Perl)" syntax (whatever that is). Can someone explain the difference between the two? -- thanks! alien .. Using The Bat! v3.5.26 on .. Windows XP 5.1 Build 2600 - Service Pack 2