jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Mud <>
Subject Javascript
Date Thu, 22 Jan 2009 21:27:57 GMT

In my script i use the regex function to extract a number. This number
however is a string "0000856756".
I need to remove the leading 4 zero's. I tried to use the __Javascript
function with the function parseInt and parseFloat, but I get a message
"NaN" which probably means that the string isn't a number. 
How do I convert the string into a number, or is there another way to do

I also tried to adjust the regex function to '0000(.+?)\"); but this didn't
work either.

Help will be appriciated.

Andre Mud
View this message in context:
Sent from the JMeter - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message