Quote:
Originally Posted by Loriel
Matching should return or make accessible the part of the string that was actually matched (probably just offset, length) and all the parenthesised groups.
Replacing should optionally take a function instead of a string that is called with the matched part and groups and returns a replacement string.

|
I like the way you are thinking. I wouldn't mind having something that works just as Lua's string.gsub() does.