Skip to content

This is my own implementation of a Regular Expression engine in C based off of this video by Low Byte Productions

Notifications You must be signed in to change notification settings

AlexanderThaep/RexEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is my own implementation of a Regular Expression engine in C based off of this video by Low Byte Productions

Regular expressions are used pretty everywhere involving user input since we communicate in languages and text. In its most basic form, it scans through text and finds characters. At its most complex, we have engines built for efficiency with advanced capabilities supporting a wide array of platforms.

However, this implementation seeks to allow for the minimum that any user familiar with RegEx would appreciate. There are few special features and even fewer guarantees of efficiency or function. Yet, it's a little novelty project that I hope to incorporate into a larger Language Parser and, eventually, compiler.

Again, this is very rough coding and there might even be some hidden cases that will break it and memory leaks abound.

Current features:

    Matches literals (ex. 1, e, r, k)

    Matches literal sets (careting also supported)

    Matches anything: .

    Matching one or more: +

    Matching zero or more: *

    Matching zero or one: ?

    Variable matching: {,}

    Backtracking (greedy, lazy, possessive)

TODO features:

    Literal sets

    Caret negation

    Backtracking

    Extra features...

About

This is my own implementation of a Regular Expression engine in C based off of this video by Low Byte Productions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages