in reply to Re: regex greedy range
in thread regex greedy range

Except now all parts of your regex are optional so it will match even the empty string. Also, quantified parens containing only quantified terms are a recipe for eventual disaster. I'd rather write this like so:

m|(\w+(?:/\w+){1,3})|

Makeshifts last the longest.