diff options
| author | Tyge Løvset <[email protected]> | 2022-01-30 15:41:16 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-01-30 15:41:16 +0100 |
| commit | ba3f9c10466bf724cada8713cd2934bdc56bb26e (patch) | |
| tree | 1d23c17858ac8651a20611d1037b92deaaeb4da8 /examples | |
| parent | df626f83dbf7789d622a1c5f4ff9fec3f61bc61b (diff) | |
| download | STC-modified-ba3f9c10466bf724cada8713cd2934bdc56bb26e.tar.gz STC-modified-ba3f9c10466bf724cada8713cd2934bdc56bb26e.zip | |
Replaced utf8_decode() and friends code.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/regex1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/regex1.c b/examples/regex1.c index e24e5400..02d0f5f4 100644 --- a/examples/regex1.c +++ b/examples/regex1.c @@ -10,7 +10,7 @@ int main(int argc, char* argv[]) c_auto (cstr, input) c_auto (cregex, float_expr) { - float_expr = cregex_new("[+-]?([0-9]+([.][0-9]*)?|[.][0-9]+)"); + float_expr = cregex_new("[+-]?[0-9]+(\\.[0-9]*)?|\\.[0-9]+"); // Until "q" is given, ask for another number while (true) { |
