I need help with regex for parsing a URL
The URL can be a/b/c, a/b/c/d or a/b/c/d/e
In any case I need the resource of the URL - c d e respectively for the above URLs. Can you help with a regex which can give the value after the last /
See the rex statement here
| makeresults
| eval urls=split("a/b/c,a/b/c/d,a/b/c/d/e",",")
| mvexpand urls
| rex field=urls ".*/(?<resource>.*)"
See the rex statement here
| makeresults
| eval urls=split("a/b/c,a/b/c/d,a/b/c/d/e",",")
| mvexpand urls
| rex field=urls ".*/(?<resource>.*)"