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.
In reply to Re^2: regex greedy range
by Aristotle
in thread regex greedy range
by johnnywang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |