jmeter-dev@jakarta.apache.org
[Top] [All Lists]

DO NOT REPLY [Bug 44972] New: Regular Expression (?s) not accepted at en

Subject: DO NOT REPLY [Bug 44972] New: Regular Expression (?s) not accepted at end of pattern
From:
Date: Mon, 12 May 2008 07:21:25 -0700 PDT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44972

           Summary: Regular Expression (?s) not accepted at end of pattern
           Product: JMeter
           Version: 2.3.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
        AssignedTo: jmeter-dev@xxxxxxxxxxxxxxxxxx
        ReportedBy: michael.giroux@xxxxxxxx


Documentation at http://perldoc.perl.org/perlre.html#Extended-Patterns
indicates that the single line modifier may appear at either end of a pattern:

> These can be used anywhere within the expression, e.g.
> (?i)apple(?-i) Pie - matches "ApPLe Pie", but not "ApPLe pIe"

Using 2.3.1, I get an error when the qualifier appears at the end of the
pattern:
TP-STORAGE CONTENTS:.*TX-TYPE +ECHOTPS(?s)

Results in an error:
Assertion failure message : Bad test configuration
org.apache.oro.text.MalformedCachePatternException: Invalid
expression:
TP-STORAGE CONTENTS:.*TX-TYPE +ECHOTPS(?s)
Unmatched parentheses.


Placing the qualifier at the beginning of the pattern works:
(?s)TP-STORAGE CONTENTS:.*TX-TYPE +ECHOTPS


-- 
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@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: jmeter-dev-help@xxxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>