summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/regex_match.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/regex_match.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/regex_match.c')
-rw-r--r--misc/examples/regex_match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/regex_match.c b/misc/examples/regex_match.c
index b6bd6521..93b83651 100644
--- a/misc/examples/regex_match.c
+++ b/misc/examples/regex_match.c
@@ -17,7 +17,7 @@ int main()
c_AUTO (cstr, nums)
{
const char* pattern = "[+-]?([0-9]*\\.)?\\d+([Ee][+-]?\\d+)?";
- int res = cregex_compile(&re, pattern, CREG_DEFAULT);
+ int res = cregex_compile(&re, pattern);
printf("%d: %s\n", res, pattern);
// extract and convert all numbers in str to floats