Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions guide/Text/Regex/regexMatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
<discord-messages>
<discord-message :bot="false" role-color="#ffcc9a" author="Member">
!!exec $regexMatch[Rake owns 50$ and has 18 properties.;d+]<br><br>
!!exec $regexMatch[Rake owns 50$ and has 18 properties.;\d+]<br><br>
</discord-message>
<discord-message :bot="true" role-color="#0099ff" author="Custom Command" avatar="https://media.discordapp.net/avatars/725721249652670555/781224f90c3b841ba5b40678e032f74a.webp">
50<br><br>
Expand All @@ -21,7 +21,7 @@ in case flag is not `g` it will return the whole matched text and matched groups
### Example (Find all numbers):
<discord-messages>
<discord-message :bot="false" role-color="#ffcc9a" author="Member">
!!exec $regexMatch[Rake owns 50$ and has 18 properties.;d+;g;all;/]<br><br>
!!exec $regexMatch[Rake owns 50$ and has 18 properties.;\d+;g;all;/]<br><br>
</discord-message>
<discord-message :bot="true" role-color="#0099ff" author="Custom Command" avatar="https://media.discordapp.net/avatars/725721249652670555/781224f90c3b841ba5b40678e032f74a.webp">
50/18<br><br>
Expand All @@ -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):
<discord-messages>
<discord-message :bot="false" role-color="#ffcc9a" author="Member">
!!exec $regexMatch[Rake owns 50$ and has 18 properties.;d+;g;1]<br><br>
!!exec $regexMatch[Rake owns 50$ and has 18 properties.;\d+;g;1]<br><br>
</discord-message>
<discord-message :bot="true" role-color="#0099ff" author="Custom Command" avatar="https://media.discordapp.net/avatars/725721249652670555/781224f90c3b841ba5b40678e032f74a.webp">
18
Expand All @@ -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 <Badge type=" warning" text="Medium" vertical="middle" />
###### Tags: <Badge type="tip" text="regex" vertical="middle" /> <Badge type="tip" text="search" vertical="middle" /> <Badge type="tip" text="find" vertical="middle" /> <Badge type="tip" text="search" vertical="middle" /> <Badge type="tip" text="match" vertical="middle" />

Loading