Skip to main content

Regular Expressions : Regex

1. To extract a number from the beginning of a String :

^[0-9]+

2. To extract everything else except the number in the beginning of a String :

[^0-9].+

Comments