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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:03:33+00:00 2026-06-05T05:03:33+00:00

Sometimes, it would be convenient to have a highly optimized function for regex search

  • 0

Sometimes, it would be convenient to have a highly optimized function for regex search instead of including a library generating parsers at runtime. Is there a parser generator that would fit such a role?

Ideally, it would:

  • create a single C function
  • generate a DFA corresponding to the given regular expression
  • be as efficient as KMP or Boyer-Moore in simple cases
  • 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-06-05T05:03:35+00:00Added an answer on June 5, 2026 at 5:03 am

    Here is list of tools that all suit your needs:

    1. Lex/Flex is perhaps the best-known tool for constructing parsers from regular expressions. Lex is useful in many scenarios but it can impose too much overhead for simple parsing applications because of heavyweight processing loop that imposes a stream “pull” model and input buffering. It was designed to parse entire files instead of simple strings.

    2. Re2C. It is a pre-processor that generates C-based recognizers from regular expressions. Generated state machines run very fast and integrate easily into any program, free of dependencies.

    3. Ragel State Machine Compiler. Another pre-processor that generates FSM code from high level regular language notation (regular expression is one case of this definition). It works for a range of languages (C, C++, Objective-C, D, Java and Ruby), can execute user actions on different FSM events, etc. What is more, it can generate state machine definition in format of Graphviz for visualization of states and transitions.

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

Sidebar

Related Questions

Sometimes i would like to search for text containing a new line character and
Sometimes you have a huge entity with numerous fields and it would be nice
I have 3, and sometimes more duplicates of an executable, and what I would
While editing and fixing up code I have thought that sometimes it would be
I'm using the the C++/Qt print function qDebug, but sometimes I would like to
When I work with VIM, I always have multiple windows visible. Sometimes I would
I have an array this.colors = [RED, BLUE, GREEN] , and sometimes I would
Sometimes it would be useful to name variables like no programmer should name his
In my program, I'm grep-ing via NSTask. For some reason, sometimes I would get
We are sometimes getting an OutOfMemoryError in production and I would like to be

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.