this post was submitted on 12 Apr 2025
123 points (94.2% liked)

Asklemmy

47431 readers
1789 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy 🔍

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_[email protected]~

founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 36 points 2 days ago (5 children)

Regular expressions are not that difficult and coders that refuse to learn them because they "look like line noise" are terrible at their jobs.

[–] howrar 2 points 1 day ago

Easy enough to write. But reading and maintaining? That's the hard part.

[–] [email protected] 14 points 2 days ago (1 children)

I can write a basic regex independently, but as soon as capture groups or positive/negative lookahead or lookbehind start popping up I'm back to the docs every time.

[–] [email protected] 12 points 2 days ago (1 children)

Absolutely, the syntax is difficult to remember, but knowing about concepts like lookaheads etc. is already far beyond what "regex is line noise" coders will ever achieve.

[–] [email protected] 10 points 2 days ago

And there’s always regex101.com to help develop and test your expressions!

[–] [email protected] 6 points 2 days ago

Level 2 of these people: learn regex and try to parse something non-regular like XML or C++ templates with it.

Same people who did not pay attention and hated the "useless" formal languages lecture in university and who have no clue about proper data structures and algorithms for their problem, just hack together some half-working solution and ship it. Fix bugs with extra if statements instead of solving the real issue. Not writing unit tests.

Soo many people in software development who really should not be there.

[–] [email protected] 5 points 2 days ago (1 children)

Not a coder. But knowing basic regex, makes my life so much easier. Even in things like excel.

[–] [email protected] 3 points 2 days ago

Hell, you can even use regex to search your stash in Path of Exile 2.

[–] arrakark 1 points 2 days ago

I've always thought that regular expressions are just specifications for state machines. They aren't that difficult.