Ok I'll stick to the assp regex analyzer. Thanks for expression below! ________________________________________ From: Thomas Eckardt [thomas.ecka...@thockar.com] Sent: Tuesday, April 19, 2011 1:46 AM To: ASSP development mailing list Subject: [Assp-test] Antwort: Bombre not matching in v2
This regex could not match and how ever the onlne tester gives you a wrong result - using assp's 'testRe' and the assp analyzer is much better, because it uses the same regex engine. http\:\/\/ - this is clear [A-Za-z\.\/]+ - this matches the complete string ' www.plazagameworld.ru/fr/' !!!! \.(ru|ly|nl)(\s|\/) - this should follow - but there are no characteres left after processing '[A-Za-z\.\/]+' and the match failes http\:\/\/[A-Za-z\.\/]+?\.(?:ru|ly|nl)(?:\s|\/) - this should work - but if a LF|CR follows the string, it will not match so http\:\/\/[A-Za-z\.\/]+?\.(?:ru|ly|nl)\/? - or http\:\/\/[A-Za-z\.\/]+?\.(?:ru|ly|nl)(?:\s|\/|\n|\r) - are better read: http://perldoc.perl.org/perlretut.html Thomas Von: Michelle Dupuis <mdup...@ocg.ca> An: "assp-test@lists.sourceforge.net" <assp-test@lists.sourceforge.net> Datum: 19.04.2011 04:11 Betreff: [Assp-test] Bombre not matching in v2 I get a lot of spam which I'm trying to identify by a regex to match the URL in the body. I have the regex below entered into my bombre file, and the sample message below is NOT being caught by ASSP 2.0 Any idea why? The regex tester online suggest this should match...but assp isn't matching it. ------------------REGEX--------------------- http\:\/\/[A-Za-z\.\/]+\.(ru|ly|nl)(\s|\/) ------------------MESSAGE--------------------- King Spin est l'un des plus importants et plus respectés casinos sur internet - jouez ici en toute tranquillité ! http://www.plazagameworld.ru/fr/ ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ Assp-test mailing list Assp-test@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/assp-test DISCLAIMER: ******************************************************* This email and any files transmitted with it may be confidential, legally privileged and protected in law and are intended solely for the use of the individual to whom it is addressed. This email was multiple times scanned for viruses. There should be no known virus in this email! ******************************************************* ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ Assp-test mailing list Assp-test@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/assp-test