Skip to content
Simple Regular Expression library written in C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.gitignore
.travis.yml
CMakeLists.txt
LICENSE
README.md

README.md

regx.h

Build Status License

Simple Regular Expression library written in C, inspired by this post

Supported operators

  • ^ is the start anchor, matches the beginning of the string
  • . matches with any character
  • $ matches end of string

How to use

char *pattern = ".*";
char *text = "abcdfseirjhewo34434jj";
assert(search(pattern, text));

Look at tests/test.c for more examples.

You can’t perform that action at this time.