You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2008/05/12 22:58:18 UTC
DO NOT REPLY [Bug 44978] New: Documentation regarding regular
expressions is not clear regarding (?s)
https://issues.apache.org/bugzilla/show_bug.cgi?id=44978
Summary: Documentation regarding regular expressions is not clear
regarding (?s)
Product: JMeter
Version: 2.3.1
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Main
AssignedTo: jmeter-dev@jakarta.apache.org
ReportedBy: michael.giroux@bull.com
The document describing Response_Assertion at
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Response_Assertion
contains the following statements in section 18.5.1:
"The pattern strings are Perl5-style regular expressions."
"Note that the pattern string should not include the enclosing delimiters, i.e.
use Price: \d+ not /Price: \d+/ . "
Later, the document describes the line mode qualifier (?s).
PERL documentation for patters describes the line mode qualifier as being
appended to the pattern as:
/Price: \d+/s
>From this, attempted to define a pattern
Price: \d+(?s)
This produced an error message regarding unmatched parens. (possibly an ORO
bug).
In Section 20 Regular Expressions, section 20.3 Line Mode, these qualifiers are
described again.
Neither of these topics (section 18.5 and 20.3) indicate that it is only valid
to place these modifiers at the beginning of the pattern, or that the modifier
applies to the portion of the pattern that follows the modifier.
I would like to suggest the following document changes:
Section 20.3 of
http://jakarta.apache.org/jmeter/usermanual/regular_expressions.html add a new
bullet:
* These line mode qualifiers (?s) and (?m) apply to the portion of the pattern
following the qualifier and should be specified at the beginning of a pattern
to apply to the entire pattern.
ex. (?s)some text.*some more text
Section 18.5.3 change the following:
These can be used anywhere within the expression, e.g.
(?i)apple(?-i) Pie - matches "ApPLe Pie", but not "ApPLe pIe"
To:
These qualifiers can be used anywhere within the expression and remain in
effect until overriden. e.g.
(?i)apple(?-i) Pie - matches "ApPLe Pie", but not "ApPLe pIe"
(?s)some.*text matches a string that contains '\n'
some.*text(?s) would does not match a string that contains '\n'
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 44978] Documentation regarding regular expressions
is not clear regarding (?s)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44978
Sebb <se...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Sebb <se...@apache.org> 2008-05-12 16:03:30 PST ---
Fixed in SVN
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org