[Webtest] [info] regex now uses Java's built in regex
Marc Guillemot
webtest@lists.canoo.com
Tue, 21 Mar 2006 23:53:54 -0800 (PST)
Hi,
since build 1245, regex are evaluated with Java's built in regex facilities
[1] (and not with Jakarta ORO's Perl like regex anymore) with the dotall
mode enabled (allows "." to match any character including a line terminator,
this is what Perl names the single line mode).
This allows for instance to use flags what was not possible before due to
(our?) previous regex use.
Example:
<not description="the word 'error' should not appear in the page">
<verifyText description="search for the word 'error', case insensitiv"
text="(?i:error)" regex="true" />
</not>
This shouldn't have any consequence on the existing regex.
Marc.
[1] http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html
--
View this message in context: http://www.nabble.com/-info-regex-now-uses-Java%27s-built-in-regex-t1322386.html#a3527870
Sent from the WebTest forum at Nabble.com.