rejex for get number from statement in ruby on rails

/\d\d/.match "This is the 10 number"
its will return "10"

Comments

Post a Comment