Is there a native function to get the prefix numbers in javascript?

Posted by user198729 on Stack Overflow See other posts from Stack Overflow or by user198729
Published on 2010-03-13T07:45:42Z Indexed on 2010/03/13 7:55 UTC
Read the original article Hit count: 193

'123xswer'

How to retrieve 123 from the string above without using regular expression?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about string-manipulation