Answered question

The replace function not working with extracted variable ?

var extracted =
context.variableManager.getValue("extractedvalue..variable");
var modified = extracted.replace(/\x2D/g,"-");
Neoload doesnt replace. help me please?

leela C.
leela C.

leela C.

Level
0
3 / 100
points
Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

You need to escape your "\" like this: var modified = extracted.replace(/\\x2D/g,"-");

Did you find this useful ?

No (0)

Yes (1)

100%

100% of users found this answer useful