Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 68775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T19:28:09+00:00 2026-05-10T19:28:09+00:00

There is a similar question going around, but it just got the same old

  • 0

There is a similar question going around, but it just got the same old answers that people always give about Regex syntax, but that’s not the point here, so please try to not knee jerk the same old answers about regex syntax. Try to be a little more original and personal about it this time.

Regex syntax is very VERY compact, almost too compact to be good. Its like code-golfing, and everyone agrees code-golfing isn’t a good thing in production code. However most people accept regex syntax, which seems… contradictory to say the least.

So now some common defenses one is likely to hear include :

  • Answer: It’s compact

  • Counter: Haven’t we all agreed in this day and age that code should be literate and a variable like ‘client’ is better than ‘c’?

  • Answer: It’s a ‘domain specific language’

  • Counter: how about all the very easy to understand, non compact, non cryptic and dare I say pretty domain languages out there like SQL or LINQ?

  • Answer: Its easy to understand once you know it.

  • Counter: Most great languages are easy to understand even if you’ve never used them before. For example anyone could jump into Python very easily even if they had never seen it before. And why do people defend Regex when its such a hard language to look at, but then go on and complain about Lisps parenthesis?

Ok now everyone try to be original and honest here, don’t just pull out the same old rote answers programmers used 20 years ago to design regex. Unless you really believe they are valid propositions in this day and age.


Edit: For the record, I know Regex from years ago, use them frequently even today and might even grok them. However I suddenly had a feeling it was perhaps time to reconsider things I had taken as ‘truths’ about regex, and look at them from a modern standpoint. Mostly because questioning principles is necessary for further development, and because so many newcomers complain vehemently about them, they can’t just be flat out right, so I decided to try to step into the shoes of a newcomer and consider what are some good points against regex.

As for being subjective, I don’t think this is less subjective OR less programmer related than Programmer Jokes of the days stuff. On the contrary it is very programmer related.

As for argumentative, thats the point of the question. To get good arguments pro and con regex outdated syntax, that can serve newcomers to actually understand more about why regex are what they are, and even better hopefully get some newcomer to come up with a better solution US old minded can’t see because we are blinded by the ‘coolness’ of regex.


Quote:

The Perl 5.10 documentation for regexes has melted down into a heap of unreadable drivel because so many zany features have creeped into the syntax that no-one can write sensible documentation for it any more.

You’re trying to say regex have become unmaintainable? Well then as good programmers should we consider refactoring them? Maybe cleaning up and trying over as we’ve done with some many other technologies?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T19:28:10+00:00Added an answer on May 10, 2026 at 7:28 pm

    Most of what I have to say were addressed by Adam and DGM, but I don’t think they cover your second point very well.

    ‘how about all the very easy to understand, non compact, non cryptic and dare I say pretty domain languages out there like SQL or LINQ?’

    I think a good way to express an answer to this is to ask, how would you use English to explain a regular expression?

    <TAG\b[^>]*>(.*?)</TAG> 

    Look for ‘<TAG’ a word boundary zero or more of something that is not ‘>’ followed by a ‘>’ remember zero or more of something, stopping at the first ‘</TAG>’

    This is a fairly simple regex. Is the English form really easier to understand? Could you do better?

    Regular expressions are hard to read, but what you want from them can be just as hard to explain.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is similar to a previous question , but the answers there don't satisfy
There are similar question, but not regarding C# libraries I can use in my
There is a similar question here but it only covers some of the issues
Yes, there is a similar question here . However, that question doesn't seem to
There's probably someone else who asked a similar question, but I didn't take much
There is a very similar question already. One of the solutions uses code like
I had a similar question answered Here There is a slight twist to the
I posted a similar question on how scalable linq is. There were so many
There are a couple of questions similar to this on stack overflow but not
I'm going to create a base class that implements very similar functions for all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.