C
C#13mo ago
Anxoul

❔ REGEX help!

want to create a REGEX expression in which I want to allow any non-space character (in which one alphabet[a-zA-Z] is a must at any place) also it should exclude '/' '(backslash)' and '.' Minimum characters : 7 Maximum characters : 50
4 Replies
Hackmagician
Hackmagician13mo ago
i recommend using a regex builder tool to create your own custom regexes. https://regexr.com/
string pattern = "^(?=.*[a-zA-Z])[^\s\/\.]{7,50}$
";
string pattern = "^(?=.*[a-zA-Z])[^\s\/\.]{7,50}$
";
RegExr
RegExr: Learn, Build, & Test RegEx
RegExr is an online tool to learn, build, & test Regular Expressions (RegEx / RegExp).
Anxoul
Anxoul13mo ago
waoh thanks thanks tahnks
chairclr
chairclr13mo ago
chatgpt is very good at regex, and is basically my goto for regex patterns
Accord
Accord13mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts