Quote:
Originally Posted by WhiteDragon
I still think this is a bad idea though.
|
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.
