News for hackers. Stuff that matters.
Re:Show HN: Regex.ai – AI-powered regular expression generator by lowefk on Tuesday March 28, 2023 @12:49AM (#35336047)
Reading regex is much easier than writing them when using visualization tools such as https://regexper.com/, https://regex101.com/, and https://jex.im/regulex/, especially for beginners. I always use them to read regex.
Re:Show HN: Regex.ai – AI-powered regular expression generator by Arbortheus on Tuesday March 28, 2023 @01:14AM (#35336205)
Using regexper changed my life. I’m not afraid of even the most complex regexes anymore.
Re:Show HN: Regex.ai – AI-powered regular expression generator by JTyQZSnP3cQGa8B on Tuesday March 28, 2023 @03:10AM (#35336969)
Or you can use "verbose regex" which some languages implement like in Python (https://docs.python.org/3/library/re.html#re.X). The spaces are ignored and you can add comments on each line. I used this in the past and my coworkers were happy about it because they could understand the regex and even modify it.
Re:Show HN: Regex.ai – AI-powered regular expression generator by krisoft on Tuesday March 28, 2023 @05:29AM (#35337920)
> Or you can use "verbose regex"

How did I not know about this! Thank you very much. This solves my biggest gripe with regex.

> my coworkers were happy about it because they could understand the regex and even modify it.

The most important point. Computers might read code efficiently, but if people can't reason about it, that is a recipe for bugs to sneak in.

Re:Show HN: Regex.ai – AI-powered regular expression generator by pygy_ on Tuesday March 28, 2023 @12:39PM (#35343851)
* * *
Re:Show HN: Regex.ai – AI-powered regular expression generator by qrio2 on Tuesday March 28, 2023 @09:00PM (#35350562)