regex?

icyhate
Posts: 4
Joined: Fri Dec 22, 2017 8:04 pm

regex?

Postby icyhate » Mon Dec 25, 2017 10:32 am

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

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: regex?

Postby kolban » Mon Dec 25, 2017 5:53 pm

You might be able to use the std::regex classes of the C++ standard library. See for example:

http://www.cplusplus.com/reference/regex/
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: regex?

Postby WiFive » Tue Dec 26, 2017 3:38 am

Try micropython

User avatar
i_am_mrp
Posts: 27
Joined: Thu Sep 28, 2017 9:14 am
Location: California

Re: regex?

Postby i_am_mrp » Tue Dec 26, 2017 4:58 am

If you are using C++, std::regex works fine.

icyhate
Posts: 4
Joined: Fri Dec 22, 2017 8:04 pm

Re: regex?

Postby icyhate » Tue Dec 26, 2017 9:09 am

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

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: regex?

Postby ESP_Angus » Tue Dec 26, 2017 10:56 pm

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!

Who is online

Users browsing this forum: Baldhead and 87 guests