[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua regex question
- From: Philippe Lhoste <PhiLho@...>
- Date: Mon, 16 May 2011 14:43:38 +0200
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
-- -- -- -- -- -- -- -- -- -- -- -- -- --