#regex help
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
use this as the regex:
\\d\\)
thank you!! i give that a try
though you might need to update it
\\d+\\)
so it will match 10) as well, if you have multiple digits
thank you that worked well!!
seriously thank you so musch it decreased my code by like 10 fold
you might be interested what that regex matches in the first place
so \d matches any digit
+ after the \d means that this will match any digit one or more times
\) matches the literal ) character, you need to escape it because the character has a meaning in regex
ahh thank you, we didnt cover a lot in regex and i just found //D for digits.
U are literally my hero man
this website is pretty helpful: https://regex101.com/
you need to select java on the left side