summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-01-30 15:41:16 +0100
committerTyge Løvset <[email protected]>2022-01-30 15:41:16 +0100
commitba3f9c10466bf724cada8713cd2934bdc56bb26e (patch)
tree1d23c17858ac8651a20611d1037b92deaaeb4da8 /examples
parentdf626f83dbf7789d622a1c5f4ff9fec3f61bc61b (diff)
downloadSTC-modified-ba3f9c10466bf724cada8713cd2934bdc56bb26e.tar.gz
STC-modified-ba3f9c10466bf724cada8713cd2934bdc56bb26e.zip
Replaced utf8_decode() and friends code.
Diffstat (limited to 'examples')
-rw-r--r--examples/regex1.c2
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)
{