regx.h

regx.h

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.

Avatar
Man Parvesh Singh Randhawa
Software Enthusiast | Life-long learner

I am a Software Engineer interested in efficient large-scale distributed software systems.

Next
Previous