kokke / tiny-regex-c

Small portable regex in C
The Unlicense
1.24k stars 174 forks source link

Could not search for '.' #47

Closed jaeung24k-sindoh closed 3 years ago

jaeung24k-sindoh commented 4 years ago

re_compile("[A-Z]:-?\d+.\d+"); or re_compile("[A-Z]:-?\d+[.]\d+");

Can't distinguish between X:12.34 and X:1234.

szm007 commented 4 years ago

[.] will match any character,try [\.] You should learn about escape characters