RegEx

368 readers
1 users here now

Welcome to the RegEx community! This is a place where you can learn about and get help with regular expressions

A regular expression is a sequence of characters that specifies a match pattern in text. Theyre usually used for find, or find and replace operations on strings, or for input validation.


founded 1 year ago
MODERATORS
1
34
submitted 8 months ago by mac to c/regex
2
3
31
Regex Crossword (regexcrossword.com)
submitted 1 year ago by mac to c/regex
4
5
6
7
8
new mod 2 (self.regex)
submitted 1 year ago by VonTum to c/regex
 
 

Hi all I am also a new mod for the regex community! Let's make this place shine :)

8
7
New Mod (self.regex)
submitted 1 year ago by recursive_recursion to c/regex
 
 

Hello~ I'm one of the new mods for c/regex

I'll try my best to keep this community a safe place where people can find good regex101 information without having to deal with any toxic nonsense!

9
10
10
Regular Expression Tutorial (coding-boot-camp.github.io)
submitted 1 year ago by Ategon to c/regex
11
12
13
2
submitted 1 year ago by canpolat to c/regex
14
 
 

With all the strengths and shortcomings of Chat-GPT, I wanted to share one consistent strength I found it has when working with regex.

  • You can ask it to generate regex patterns for known and custom things.
    • If you are skeptical it is correct (like me), you can ask it to break down the pattern and inspect why the decisions were made. If I don't understand some fields, I type up a quick test and make sure it covers all edge cases.
  • And my personal favorite, you can paste a regex and ask it to tell you what it matches to. No more writing regex and forgetting what they are for!

I don't always have the opportunity to use regex when I work and would shy away from it because it can become illegible, but now that it is so easy I find I am slapping it everywhere and I cutting down on logic when sanitizing inputs/data. The bonus is now that I'm using it more, I am becoming less reliant on having it be generated for me.