From d03f16013765ed2e3b2b0eace2b14588e9b46858 Mon Sep 17 00:00:00 2001 From: redphantom1000 Date: Sun, 30 Nov 2025 20:41:03 -0500 Subject: [PATCH] Update regexMatch.md Lines 14, 24, and 34 are matching the text with the wrong regex. - "d+" matches the letter d, while "\d+" matches all whole numbers. Line 43: This section was not properly closed, should now be fixed --- guide/Text/Regex/regexMatch.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/guide/Text/Regex/regexMatch.md b/guide/Text/Regex/regexMatch.md index da87c4a4..676fb8b8 100644 --- a/guide/Text/Regex/regexMatch.md +++ b/guide/Text/Regex/regexMatch.md @@ -11,7 +11,7 @@ in case flag is not `g` it will return the whole matched text and matched groups ### Example (Find the first number): - !!exec $regexMatch[Rake owns 50$ and has 18 properties.;d+]

+ !!exec $regexMatch[Rake owns 50$ and has 18 properties.;\d+]

50

@@ -21,7 +21,7 @@ in case flag is not `g` it will return the whole matched text and matched groups ### Example (Find all numbers): - !!exec $regexMatch[Rake owns 50$ and has 18 properties.;d+;g;all;/]

+ !!exec $regexMatch[Rake owns 50$ and has 18 properties.;\d+;g;all;/]

50/18

@@ -31,7 +31,7 @@ in case flag is not `g` it will return the whole matched text and matched groups ### Example (Find 2nd number only): - !!exec $regexMatch[Rake owns 50$ and has 18 properties.;d+;g;1]

+ !!exec $regexMatch[Rake owns 50$ and has 18 properties.;\d+;g;1]

18 @@ -40,7 +40,7 @@ in case flag is not `g` it will return the whole matched text and matched groups ::: tip Regex Flags These are all regex flags: `g, i, m, u, s, y.` -:: +::: ##### Function difficulty ###### Tags: