Guest User

Untitled

a guest
Nov 5th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.17 KB | None | 0 0
  1. Regex_Pattern = "...\....\....\...."
  2.  
  3. Test_String = "123456789222222"
  4. regex = Test_String.scan /#{Regex_Pattern}/
  5. p regex, Test_String
  6. p "Number of matches : ",regex.length
Advertisement
Add Comment
Please, Sign In to add comment