Can't call functions inside replace + regex?

Hi,

Is there a way to call a fonction inside the replace function using regex? Facing an issue with this simple example:

parseNumber( ".12" ; ".") --> 0.12 : Works

replace( ".12" ; "/(.*)/" ; parseNumber( "$1" ; ".") --> 1 : Fails (string “$1” is passed, not it’s value)

Thanks

Nope the $1 expression is scoped to the outer replace function. Split this into two modules.

3 Likes

Arf, ok
Thanks for the quick answer

2 Likes