Number from string

Hi, is there any way to extract only numbers from a string without using any extension? Also the string is dynamic so parse component of device utilities won’t work!

Got the solution, thanks to myself

Or in simple term you can try js evaluation using webviewer

Call webviewer evaluate JS(join(“)(textbox text)(”.replace(/[^0-9]/g, ‘’));

When webviewer after evaluate
Set label text to get value


“838383jsjsjsj282”.replace(/[^0-9]/g, ‘’));

It will return as


Testing code

Also for your query it is better to use replace block alone.

If the text contains text INR
Then replace the INR with empty string
Else …

So simple

Thanks! <3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.