Buttaro
Sunday, 11 August 2013
How to match only numbers after a letter?
How to match only numbers after a letter?
I want to match only numbers after s
What I've tried
$line = "sometext s123 text";
preg_match("/s[0-9]*([0-9])/",$line,$match);
echo $match[0]
I'm getting s123 instead of 123
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment