Re: conditional replace
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: conditional replace
 
- From: "Thomas A. Schmitz" <thomas.schmitz@...>
 
- Date: 2007年9月18日 22:51:37 +0200
 
On Sep 18, 2007, at 10:46 PM, Jerome Vuarand wrote:
With that syntax, the right string must be quoted, and the left 
string must be a valid Lua symbol. You cannot put characters '>', 
'~' in a Lua symbol. Precisely which characters are authorized in 
the symbols is local dependent.
You can also try this alternative syntax:
subs = {
 [">~h|"] = "ᾖ"
}
Wow, that was fast! Thanks so much, that does exactly what I want. 
I'll need to iterate over the file several times, but that's not a 
problem!
Thanks!
Thomas