lua-users home
lua-l archive

literal find?

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello,
I have a little template class which would benefit from "literal" matching (e.g. no pattern resolution, just find text "as is"):
http://dev.alt.textdrive.com/file/LW/LWTemplate.lua
The template uses 2 simple constructs: "(v:aVariableName)" and "(t:aTemplateName)". Is there a way to tell the different string function to use a string "as is" without having to escape every single magic character? Alternatively, does anyone have an handy function to automatically escape all those magic characters?
Thanks :)
Cheers
--
PA, Onnay Equitursay
http://alt.textdrive.com/

AltStyle によって変換されたページ (->オリジナル) /