Then write your own implementation of substr instead of replacing it. Most likely you'll need to write a parser for whatever language you're parsing. It shouldn't be hard, and "replace substr" clutters your problem with many hard (and weird) problems that are unrelated to the task.
In reply to Re^3: substr function
by Corion
in thread substr function
by tej
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |