View Single Post
  #9  
Old 02-10-2010, 12:47 AM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Loriel View Post
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.
Reply With Quote