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

  • SEARCH
  • Home
  • 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 6149733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:30:11+00:00 2026-05-23T19:30:11+00:00

If you ask a question about parsing HTML with regex, you will certainly be

  • 0

If you ask a question about parsing HTML with regex, you will certainly be referenced to this famous rant. Though there is not a canonical rant for it, I’ve also been told that regex aren’t powerful enough to parse SQL.

I’m a self-taught programmer, so I don’t know much about languages from a theoretical perspective. Practically speaking, what are examples of languages or grammars that regex can always parse successfully?

To be specific, I’d really like a few examples of languages that are used in the real world that fit in the category of regular languages, rather than some axioms or equivalent conditions, etc.

  • 1 1 Answer
  • 0 Views
  • 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. Editorial Team
    Editorial Team
    2026-05-23T19:30:12+00:00Added an answer on May 23, 2026 at 7:30 pm

    Regexes are great for parsing things with only repetitions. They go wrong when you have forms of recursion. I think most useful is showing the simplest language it can’t parse:

    n open parenthesis followed by n close parenthesis, so for instance:
    (()) and ((((()))))

    If you know you cannot parse that, you can easily conclude that you cannot parse most programming languages.

    So I think you could parse basic SQL (though not if you would allow stuff like subqueries). Other prime examples of regex-parseable strings are web adresses, email-adresses, phonenumbers, etc.

    If you’re looking for actual programming languages which one can parse using regexes you won’t find many (though I think (from my limited knowledge of it) parsing assembly should be possible. Most uses however are found in parsing simple strings, or lines.

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

Sidebar

Related Questions

i want ask some question about asp.net mvc Is static constructor will init every
Earlier this week I ask a question about filtering out duplicate values in sequence
I was going to ask a question here about whether or not my design
i'm just curious. so i ask this particular question about SQLite. I haven't use
I ask a question about using XPath function there But I meet a problem
This question has been edited to ask about a specific example as the original
I want to ask a question about how you would approach a simple object-oriented
I saw someone ask a question about detecting if a URL redirects from groovy
i want to ask a question about how to do paging in ASP.net coding
I was going to ask a question about preparing a desktop application to support

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.