Re: how to translate lua pattern "(.*)and(.*)" with lpeg re ?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: how to translate lua pattern "(.*)and(.*)" with lpeg re ?
- From: albertmcchan <albertmcchan@...>
- Date: 2018年1月20日 20:04:40 -0500
looks like it is not easy to convert lua pattern "(.*)and(.*)" after all
my last attempt, re.compile "{(!'and' .)*} 'and' {.*}" was close, but still wrong
the re pattern correspond to lua pattern "(.-)and(.*)", not the greedy version.
:-(