frang75 / nappgui_src

SDK for building cross-platform desktop apps in ANSI-C
https://www.nappgui.com
MIT License
437 stars 40 forks source link

Regular expression problem #126

Open SamSandq opened 3 weeks ago

SamSandq commented 3 weeks ago

I am trying to match the following RegEx

RegEx *r1 = regex_create("\\d{1,3}[dwmy]");

but it's not accepted. As a matter of fact, it seems like your regexes are very limited, as e.g. the normal \d, \D, \s, or the alternative operator | are not accepted (and, to be honest, not mentioned in you documentation of your regular expressions either).

Is it really the case that you do not support full (normal) regular expressions as, e.g., in https://regex101.com, or supported by Python, Swift or other languages (via libraries, to be sure)?

If not, please implement full support.

frang75 commented 3 weeks ago

At the moment, NAppGUI regular expressions only accept these patterns: https://nappgui.com/en/core/regex.html#h1