Date: 2004-12-19T06:33:28 Editor: SebastianBazley <[EMAIL PROTECTED]> Wiki: Apache JMeter Wiki Page: RegularExpressions URL: http://wiki.apache.org/jakarta-jmeter/RegularExpressions
Added online ORO demo and some others; Change Log: ------------------------------------------------------------------------------ @@ -6,13 +6,11 @@ There is also documentation on an older incarnation of the product at [http://www.savarese.org/oro/docs/OROMatcher/index.html OROMatcher User's guide], which might prove useful. -[http://www.oreilly.com O'Reilly] publishes Mastering Regular Expressions and has put some sample chapters [http://www.oreilly.com/catalog/regex2/chapter/ online]. [http://www.oreilly.com/catalog/regex2/chapter/ch08.pdf Chapter 8] is on Java, and includes some useful information on Jakarta-ORO. - === Overview === -The pattern matching is very similar to the pattern matching in Perl. A full installation of Perl will include plenty of documentation on regular expressions - look for perlrequick, perlretut, perlre, perlreref. O'Reilly sell a book called "Mastering Regular Expressions" by Jeffrey Friedl which will tell you all you need to know (and a lot more) about regular expressions. +The pattern matching is very similar to the pattern matching in Perl. A full installation of Perl will include plenty of documentation on regular expressions - look for perlrequick, perlretut, perlre, perlreref. [http://www.oreilly.com O'Reilly] sell a book called "Mastering Regular Expressions" by Jeffrey Friedl which will tell you all you need to know (and a lot more) about regular expressions. -There are also a couple of sample chapters available on their web-site covering REs in Java and .NET, and the Java chapter has a [http://www.oreilly.com/catalog/regex2/chapter/ch08.pdf section on ORO (PDF)] - worth a look. +There are also a couple of [http://www.oreilly.com/catalog/regex2/chapter/ sample chapters] available on their web-site covering REs in Java and .NET, and the Java chapter has a [http://www.oreilly.com/catalog/regex2/chapter/ch08.pdf section on ORO (PDF)] - worth a look. It is worth stressing the difference between "contains" and "matches", as used on the [http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Response_Assertion Response Assertion] test element: * "contains" means that the regular expression matched at least ''some'' part of the target, so 'alphabet' "contains" 'ph.b.' because the regular expression matches the substring 'phabe'. @@ -37,13 +35,21 @@ * http://www.regexlib.com/ - regular expressions library + * http://java.sun.com/docs/books/tutorial/extra/regex/index.html - Tutorial on java.util.regex + === Links to Regex Testers === -Note that these testers use engines which may work slightly differently from the Jakarta-ORO (the one currently used by JMeter). However, a lot of regexes will work the same in all the tools. + * '''http://jakarta.apache.org/oro/demo.html''' - Java applet using Jakarta ORO + +Note that the following testers use engines which may work slightly differently from the Jakarta-ORO (the one currently used by JMeter). However, a lot of regexes will work the same in all the tools. + + * http://jakarta.apache.org/regexp/applet.html - online Jakarta regexp package tester * http://weitz.de/regex-coach/ - easy to use regex tester (Linux and Windows, Perl-like expressions) * http://jregexptester.sourceforge.net/index.html - Java Swing (requires JVM 1.4 or above, presumably uses java.util.regex) + + * http://www.fileformat.info/tool/regex.htm - online java.util.regex tester * http://royo.is-a-geek.com/iserializable/regulator/ - the Regulator (Windows only, .NET regexes) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
