Answered question

Neoload - how to set Regex flags?

I am trying to extract some content from a response, with Regular Expressions.

However, I need the Regex to match all characters to dot ("."). This is also known as "dot matches all". There's also another interesting flag for Regexes which is whether the matching should be case insensitive.

How can I set those flags for a Regex capture in Neoload?

Paulo A.
Paulo A.

Paulo A.

Level
0
1 / 100
point
Helio S.
Helio S.

Helio S.

Level
0
49 / 100
points

Neoload is based on java so you can you java regex flags.

In the Variable Extractor, if you switch to advance mode, the default query is "(.*)" which matches the document until the first line break.
To match all the document you can add the flag S using the following sintax: "(?s)(.*)"

Did you find this useful ?

No (0)

Yes (2)

100%

100% of users found this answer useful

Other answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

When you are in the variable extractor panel, you can define your variable extractor based on a left and right boundary. This is the simple mode for creating variable extractor.

But if you switch to advanced mode by clicking on the "switch to advanced mode" button, you will be able to write your own regular expression.

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

Sorry i think i misunderstood your question. I do not think that NeoLoad supports flags but i will check and confirm.