String replacement without regular expressions
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: String replacement without regular expressions
- From: Jan Schütze <JanS@...>
- Date: 2007年4月10日 18:05:50 +0200
Hello,
Since Sam Lie's string.replace function [1] isn't part of the default
lua release, I wanted to ask if there is any way to escape (fast) all
magic characters in the string one wants to replace? In string.find one
has something like a "plain"-parameter, but in string.gsub (for example)
its missing.
Sincerly,
Jan (DracoBlue)
[1] http://lua-users.org/wiki/StringReplace