that's beautiful...
so, if i have this right... match the first bracket; IF, non-backtracking, we find an additional [ or ], then recurse; match the last bracket?
what is the purpose of the ^?
In reply to Re^3: How to find the outermost pair of square brackets with a regex?
by lokiloki
in thread How to find the outermost pair of square brackets with a regex?
by lokiloki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |