Hi.
I'm trying to build a BT to get the amount from a servlet parameter, but the issue is that this amount has a comma as decimal point... so dynatrace is not recognizing it as a number:
The regex that I've done is this:
importe=(.*?)(?:, |\])
And a value string for testing is this:
[affsafas=231, importe=22,31, maadf=234234]
and the result that I'm getting is 22,31
Anybody knows how to replace this comma and get a 22.31?
Thanks!
JMI
Answer by Joshua R. ·
Hey Jose,
Unfortunately there currently is not a way to replace characters using regex within dynaTrace. However, what you may be able to do is to exclude the comma altogether and simply change the scale on the chart for the Business Transaction. Your numbers would be stored as two decimal points off (2231 instead of 22.31), however, they would be represented correctly when charted with an altered scale.
To change the scale on a chart, follow the below steps:
JANUARY 15, 3:00 PM GMT / 10:00 AM ET