On Sun, Jun 12, 2005 at 12:05:10AM -0400, William Coleda wrote: > Is it possible to do substitutions with PGE yet? If so, how?
Single (first occurrence) substitutions are possible; simply perform the match, the match object returns the start/end location of the item that matched, and then do a substr operation based on that information. Performing multiple substitutions doesn't exist yet in pure PGE; eventually we'll have the ":globally" option available, in this case the match object will have a .matches method that will return the array of items that matched, and one can perform the substitutions on that (presumably in reverse sequence so as to not interfere with offsets too much). Pm