saasbook

regexp_capture.rb

Aug 16th, 2013
670
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.05 KB | None | 0 0
  1. x = "8:25 PM"
  2. x =~  /(\d\d?):(\d\d)\s*([ap])m$/i
Add Comment
Please, Sign In to add comment