How would I go about reporting the position in a string of nested matches to a pattern like this
Example:[XYZ]{3}[A-Za-z]{0,21}[ABC]{3}
would result with 3,3FGTXYZGTFABCGHABC
or
would result with 3,8FGTXYZADXYZGTYABC
I have been interating through the string one char at a time using a while loop, but this take quite a bit of time. Is there a faster way?
Thank you for your time.
edited: Mon Aug 18 20:06:42 2003 by jeffa - formatting
In reply to nested pattern matching by vinforget
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |