Any ideas why this regex doesn't match everything from my string?
(I want it to match discord.gg/XUGswJ)
Asked
Active
Viewed 66 times
0

Lmao 123
- 111
- 1
- 8
-
If it's .NET, you could write either way: 1) `discord\.gg\/.+(?i)[a-z]` or 2) `discord\.gg\/.+[A-za-z]` – JohnyL May 27 '20 at 17:06
-
1/ does not need to be escaped. – TonyR May 27 '20 at 17:47
1 Answers
1
[a-z]
means lowercase letters. You probably want [a-zA-Z]
to include uppercase.

wjandrea
- 28,235
- 9
- 60
- 81