lua-users home
lua-l archive

Re: lrexlib : newbie question

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


On 9/10/07, Shmuel Zeigerman <shmuz@actcom.co.il> wrote:
>
> The reason is the backslash in the pattern: when Lua compiles '(\d+)',
> the backslash disappears, and PCRE can't see it.
> In order to obtain the correct results, one should either duplicate
> every backslash or use "long string" syntax.
>
> Bottom line: use '(\\d+)' or [[(\d+)]].
Thank you so much for your very quick help,
Regards,

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