I have a pretty simple string that I want to parse in a ruby โโand try to find the most elegant solution. The string has the format /xyz/mov/exdaf/daeed.mov?arg1=blabla&arg2=3bla3bla
What I would like: string1: /xyz/mov/exdaf/daeed.mov string2: arg1 = blabla & arg2 = 3bla3bla
so basically tokenize?
but cannot find a good example. Any help would be appreciated.
Arash saff
source
share