lua-users home
lua-l archive

Re: lua regex question

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


On 16/05/2011 14:26, steve donovan wrote:
When in doubt, use a few patterns...
When in doubt, look in the reference... :-)
You can make a char class optional, but not a group.
Alternatively, there are Lpeg or Re libraries bindings.
Or, as Steve suggests (if I understood correctly), replace such structure with some limited tests chained together by some logic.
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --

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