It's pretty hard to give a faster answer when we don't know exactly what you are doing currently (note that the code should compile and run!). Perhaps you could provide just enough of your code to demonstrate the problem and just enought data (in a __DATA__ section) to illustrate the matching issues.
A few other things that it may help to know are:
In reply to Re: Regex only the longes Value , and possible speedup Problem
by GrandFather
in thread Regex only the longes Value , and possible speedup Problem
by ultibuzz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |