-2

Help on how to create regular expression to extract data in JMeter.

Data to be extracted from: <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<ruleset id=\"8DEF7F30-165B-2C44-219E-DB7938283CD4\" locale=\"en\">\n\t<baseQuestions id=\"life\">

I need a regular expression that can extract the ruleset id from eg above.

Here are the regular expressions that i tried to use: *ruleset id=\"(.+?)\" *ruleset id=[^\\",]+ *"ruleset id"=\"(.+?)\"

I tried other variations not I keep getting no match.

yngielkoh
  • 1
  • 3

1 Answers1

-1

You need to escape a backslash with another backslash:

ruleset id=\\"(.+?)\\"

enter image description here

References:

Dmitri T
  • 159,985
  • 5
  • 83
  • 133