Search
/^[\s\d]+/
Replace the empty string. For instance:
str = str.replace(/^[\s\d]+/, '');
This will remove the numbers and spaces in any order from the beginning of the line. For something that only removes the number followed by spaces, see BoltClock Answer.
source
share