Regex to get first number in string with other characters
I'm new to regular expressions, and was wondering how I could get only the first number in a string like . In this case, I'd want it to return , but the number could also be shorter or longer. 100 2011-10-20 14:28:55
100
I was thinking about something like , but it takes every single number separately (100,2001,10,...)[0-9]+
Thank you.