cancel
Showing results for 
Search instead for 
Did you mean: 

String replace method where pattern is dynamic

alchemiz
Contributor III

Hi SMEs,

Quick question, is there a way to set the regex pattern in replace method dynamically?

Example:

alchemiz_0-1726207717808.png

 

Thanks

1 ACCEPTED SOLUTION

alchemiz
Contributor III

All good, by putting eval($pattern) will accept the regex pattern.

alchemiz_0-1726211773517.png

 

View solution in original post

1 REPLY 1

alchemiz
Contributor III

All good, by putting eval($pattern) will accept the regex pattern.

alchemiz_0-1726211773517.png