Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> a = "content_30[]=31&content_30[]=32&content_30[]=34&content_30[]=33"
- => "content_30[]=31&content_30[]=32&content_30[]=34&content_30[]=33"
- >> a.match('\=(\d+)')
- => #<MatchData:0x1f5d498>
- >> a.match('\=(\d+)').to_a
- => ["=31", "31"]
- >> a
- => "content_30[]=31&content_30[]=32&content_30[]=34&content_30[]=33"
- >> a.scan('\=(\d+)')
- => []
- >>
Add Comment
Please, Sign In to add comment