in reply to Re: need to split URL stringin thread need to split URL string
m%([^/]*)$%)
In your original, the forward slash inside the stock delimiters terminates the regex you offered, meaning that has an unmatched "["