-
Easy way to extract a number from a string
Hello,
I’m looking for a method to convert, say “layer23” or “Text 23 is here” to the number 23. Basically a method to ignore any non-numerical text in a string. I’ve tried a few JavaScript methods, but they either don’t work or give me the Not a Number result. I’m hoping for some equivalent of Filemaker’s GetAsNumber function (https://www.filemaker.com/11help/html/func_ref3.33.52.html).
Any suggestions?
– Paul