DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: a little regexp engine  (Read 6,053 times)

nasciiboy

  • Member
  • Joined in 2016
  • **
  • Posts: 5
    • Participated in NANY Challenge Once
a little regexp engine
« on: December 09, 2016, 05:02 PM »
regexp3.zip (52.4 KB)(google translate)
*Recurseve Regexp Raptor* is a library search, capture and replacement Regular expressions written in C language from zero, trying to achieve what following:

- Having most of the features present in any other regexp library.

- Elegant Code: simple, clear and endowed with grace.

- Avoid explicit request dynamic memory.

- Avoid using any external libraries, including the standard library.

- Be a useful learning material.

this library the first (Currently under development in https://github.com/nasciiboy/RecursiveRegexpRaptor) focuses on simplicity and code. Only use *510 lines* of pure C. enjoy!

to test the ascii library

    gcc ascii_test.c regexp3_ascii.c

to the ut8 vercion

    gcc ascii_test.c regexp3_utf8.c

to view the benchmark confortably see readme.html.
« Last Edit: December 09, 2016, 05:13 PM by nasciiboy »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: a little regexp engine
« Reply #1 on: December 09, 2016, 05:16 PM »
That's pretty cool!

nasciiboy

  • Member
  • Joined in 2016
  • **
  • Posts: 5
    • Participated in NANY Challenge Once
Re: a little regexp engine
« Reply #2 on: December 09, 2016, 08:59 PM »
I hope to participate in n.a.n.y. In a few days with a development based on this library

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: a little regexp engine
« Reply #3 on: December 09, 2016, 10:58 PM »
Awesome  :up: :up:

Original address: https://www.donationcoder.com/forum/index.php?topic=43268.0