In my opionion it's best to avoid (.*) or (.+) in your expressions or better still avoid '.' altogther. This is really VERY generic and is what is causing your problem.
You need to be more specific about what characters you want to match between the @@@ bits in your text.
The @ character will be matched by the (.+) part of the expression and the program will try to match the largest string it can find.
You need to make your expression say that the @ character can not be included between the '@@@' tags. This will make your expression a lot longer.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.