KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm new to regular expressions, and was wondering how I could get only the first number in a string like 100 2011-10-20 14:28:55 . In this case, I'd want it to return 100 , but the number could also be shorter or longer. I was thinking about something like [0-9]+ , but it takes every single number separately (100,2001,10,...) Thank you.
Tags (comma-separated)
Save Edits
Cancel