Vote count:
0
Given this string
"http://www.monkeysports.com%2Fcontent%2F123.json"
I'm trying to match everything in here except the last ".json" part. In other words, I want a regex that will do the following:
sum_regex.match("http://www.monkeysports.com%2Fcontent%2F123.json")
=> "http://www.monkeysports.com%2Fcontent%2F123"
Is this possible with just regex?
asked 36 secs ago
Aucun commentaire:
Enregistrer un commentaire