Page 1 of 1

regex?

Posted: Mon Dec 25, 2017 10:32 am
by icyhate
is there any way i can uses regular expressions on the esp32? i need to parse a ftp list and it seems like the best way to do it, i even got the regular expression written up

Re: regex?

Posted: Mon Dec 25, 2017 5:53 pm
by kolban
You might be able to use the std::regex classes of the C++ standard library. See for example:

http://www.cplusplus.com/reference/regex/

Re: regex?

Posted: Tue Dec 26, 2017 3:38 am
by WiFive
Try micropython

Re: regex?

Posted: Tue Dec 26, 2017 4:58 am
by i_am_mrp
If you are using C++, std::regex works fine.

Re: regex?

Posted: Tue Dec 26, 2017 9:09 am
by icyhate
I am not using c++ I'd really like to but I run into errors when I include normal c libraries. I thought they were 100% compatible

Re: regex?

Posted: Tue Dec 26, 2017 10:56 pm
by ESP_Angus
icyhate wrote:I am not using c++ I'd really like to but I run into errors when I include normal c libraries. I thought they were 100% compatible
They should be, but occasionally there have been some blind spots. If you have examples of errors, please post them so we can correct them!