best example... say I have a simple template, and I replace a template item with text that has more template data in it, is there a way to make the regexp go back and continue from the spot it replaced at. This is more of a curiosity than anything else, there are certainly other ways to do it (like translating the text returned by do_something before it is returned...) but I would like to know. Obviously there is a danger of continuous looping if you could do this...1 while(s/(pattern)/&do_something($1)/ge);
- Ant
In reply to replacing text you have already replaced... by suaveant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |