Can't you use two separate regexes, one for the type and one for the "TagIwant"? This would be so much simpler.
In reply to Re: Regex Optional capture doesn't
by Laurent_R
in thread Regex Optional capture doesn't
by NetWallah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |