-->
Page 2 of 2

Re: Handle string with regular expression

PostPosted: Thu May 14, 2015 11:15 am
by cal
guttso wrote:
cal wrote:Moin,

Did you notice the lua style of regular expression? Maybe they fit your needs?
Enough for standard patterns IMHO.

Cal

Did you meant this http://lua-users.org/wiki/PatternsTutorial? There are some limitations of standard Lua.


Yes, thats what I meant. Do you have a concrete requiment thats not satisfied? Full featured regexp libs are not small.

Re: Handle string with regular expression

PostPosted: Thu May 14, 2015 11:50 am
by cal
cal wrote:
guttso wrote:
cal wrote:Moin,

Did you notice the lua style of regular expression? Maybe they fit your needs?
Enough for standard patterns IMHO.

Cal

Did you meant this http://lua-users.org/wiki/PatternsTutorial? There are some limitations of standard Lua.


Yes, thats what I meant. Do you have a concrete requiment thats not satisfied? Full featured regexp libs are not small.

... but on the other hand it's a PEG parser. They are typically small. So you may give it a try.

Cal

Re: Handle string with regular expression

PostPosted: Fri May 15, 2015 4:39 am
by guttso
cal wrote:... but on the other hand it's a PEG parser. They are typically small. So you may give it a try.

Cal

I'm study how to add new module to NodeMCU, but it take some time

Re: Handle string with regular expression

PostPosted: Sat May 16, 2015 8:45 am
by TerryE
The ESP8266 is an IoT device with very limited RAM and ROM. It isn't a Windows or Android class CPU so again my suggestion is not to try to make it something that it isn't. If you can use Lua pattern matching then do so. If you need more then you are probably going about this the wrong way or trying to use the wrong device.