summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/regex1.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-01-26 10:02:06 +0100
committerTyge Løvset <[email protected]>2023-01-26 10:02:06 +0100
commit0c7e627aa27ba42b9a9a4472a4f1cdf857c1a833 (patch)
treece3a61931dff4770f49c27aead7b24aeb3360f74 /misc/examples/regex1.c
parent0b40c6af56231b4c2109596c88dcfce09c1429f7 (diff)
downloadSTC-modified-0c7e627aa27ba42b9a9a4472a4f1cdf857c1a833.tar.gz
STC-modified-0c7e627aa27ba42b9a9a4472a4f1cdf857c1a833.zip
Removed cregex args in examples which are now defaulted.
Diffstat (limited to 'misc/examples/regex1.c')
-rw-r--r--misc/examples/regex1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/regex1.c b/misc/examples/regex1.c
index 9552db62..ae00b71c 100644
--- a/misc/examples/regex1.c
+++ b/misc/examples/regex1.c
@@ -10,7 +10,7 @@ int main(int argc, char* argv[])
c_AUTO (cstr, input)
c_AUTO (cregex, float_expr)
{
- int res = cregex_compile(&float_expr, "^[+-]?[0-9]+((\\.[0-9]*)?|\\.[0-9]+)$", CREG_DEFAULT);
+ int res = cregex_compile(&float_expr, "^[+-]?[0-9]+((\\.[0-9]*)?|\\.[0-9]+)$");
// Until "q" is given, ask for another number
if (res > 0) while (true)
{