Thank you Krambambuli. I don't understand completly the regexp you submitted, but it seems that the version submitted by "mwah" is more generic.
I forgot to mention in the statement of the problem that the "aaa" is in fact "aaa+", a given token can contain any number of characters not just those I used in my example
I appreciate the help of you all.
In reply to Re^2: Need help with perl regexp
by flaviusm
in thread Need help with perl regexp
by flaviusm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |