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 414755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:18:50+00:00 2026-05-12T18:18:50+00:00

I am well aware of what regular expressions are, so please avoid giving me

  • 0

I am well aware of what regular expressions are, so please avoid giving me definitions. I am merely looking for an opinion, and maybe even some advice. I am graduating soon with my degree in computer science, and to this point, The only education I have gotten on regular expressions, is through a course on PL design and development. We have never been educated on the actual application and use of it in programs that we are writing, only on using Regex to actually with the programming language.

The question I have is, am I right in assuming the regex is the most powerful tool in matching, and dealing with text? If I am wrong, what else is out there that I should be teaching myself (as opposed to becoming good with regex)? Also, does anybody know any good regex plugins for the Eclipse IDE(Galileo preferably). I’m looking for something that allows me to test the document and maybe highlight what is being done. Thanks

  • 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-12T18:18:50+00:00Added an answer on May 12, 2026 at 6:18 pm

    It is really depends on what does it means to be powerful.

    In term of complexity, RegEx can hardly handle recursive, for example. You need something like Compiler Compiler (Compiler Generation) like JavaCC or YACC to handle that. This is the reason why you cannot easily create XML parser entirely from RegEx. The things is most of the time RegEx is sophisticate enough.

    In term of performace, RegEx cannot compete with a direct parsing. For example, if you want to see if a string starts with the word “Prefix”; In RegEx you goes ‘/^Prefix.*/‘ but in non-RegEx Java you goes ‘Str.startsWith("Prefix")‘. The speed of the two is incomparable.

    However, RegEx allows code to be a lot more manageable in many cases. The easiest example to see is that if you want to check if a string starts with atleast 10 numbers; In Java, you might write:

    for(int i = 0; i < Math.min(10, Str.length); i++) {
        char C = Str.charAt(i);
        if ((C < '0') || (C > '0'))
            reutrn false;
    }
    return true;
    

    Compares to RegEx:

    static final String CheckRegEx   = "^[0-9]{10,}+"; // So you have it expressed in one place
    static final String CheckPattern = Pattern.compile(CheckRegEx);
    
    if (CheckPattern.matches(Str)) {
        // Match
    }
    

    The code with RegEx is much more manageable.

    What I am trying to say is that each technique has trade-ofs and they must be balance.

    For most cases, RegEx is a very good tools for jobs it was designed to do.

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

Sidebar

Related Questions

I'm aware that there are single-level breadcrumbs in http://raphinou.github.com/jekyll-base/ but I'm looking for some
Even being relatively well aware of PHP peculiarities, the following strange behaviour still got
I am well aware that this is an unusual thing I'm looking to do
I’m well aware of the Microsoft support base article stating that it’s not supported
While I am well aware that it isn't possible for me to refer to
Disclaimer I am well aware that PHP might not have been the best choice
Let me preface this by saying that I'm well aware that running user supplied
Well, I have a application which somehow requires some system resources, but how do
I am well aware of SQL statements such as select, insert, update and delete.
Edit: I'm well aware of that this works very well with value types, my

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.