lua-users home
lua-l archive

Re: A stupid question

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


>If s == "a.b" you'll have to escape it before using in the
>pattern:
>
>s = gsub (s, "(%p)", "%%%1")
>
>	So, "a.b" will be "corrected" to "a%.b". This is required for
>every solutions given (mine, Roberto's ...).
Yes, I thought of that, but it never hurts to think twice :-)
 Enrico

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