View Single Post
  #7  
Old 02-09-2010, 11:44 PM
tempandrew tempandrew is offline
Registered User
Join Date: May 2005
Posts: 98
tempandrew is on a distinguished road
Quote:
Originally Posted by WhiteDragon View Post
I imagine people would want both a

string.match(pattern) -> boolean

and a

string.replace(pattern, replacement_string) -> string

Where the replacement_string could include back-references (like $1 or $2) if pattern includes capturing parenthesis.


I still think this is a bad idea though.
This should be implemented ASAP. I can think of a lot of situations where a replace command would be great.
Reply With Quote