Could you provide some sample text contained in $data? This may help the regex optimization.
In reply to Re: Help with speeding up regex
by Kenosis
in thread Help with speeding up regex
by eversuhoshin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |