![]() Preserved Topic: Removing some characters from a string (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Berlin (almost) |
![]() Hi everyone, |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() The parseInt function does this nicely. It takes a string as an argument, and looks for numbers in the beginning of the string. It takes all the numbers up to either the end of the string or the first non-number character, and returns them as a number. |
Bipolar (III) Inmate From: Berlin (almost) |
![]() Thanks a lot, Slime, that's exactly what I was looking for! |