(?>.*?$target) may be what you want, but I'm not sure it will make any difference once you've switched to using [^>]* in the later part.
In reply to Re: Removing backtracking from a .*? regexp
by ysth
in thread Removing backtracking from a .*? regexp
by grinder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |