Skip to content

Regex expression matcher in c for the subset of conventional regex

License

Notifications You must be signed in to change notification settings

hyouteki/irregex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IRREGular EXpression

Regex expression matcher in c for the subset of conventional regex.

Syntax

Expression Match clause
c matches any literal character c
. matches any single character
^ matches the beginning of the input string
$ matches the end of the input string
c* matches zero or more occurrences of the character c
.*c matches zero or more of any character until c
.*\0 matches zero or more of any character until the end of input string
*c matches zero or more of any character until c from the start of input string

Quick Start

make
make test

Examples

irregex "Hello .* " "Hello nosferatu Hello ninthcircle"
> Hello nosferatu

irregex "ir*e.ex" "irrrrrregex"
> irrrrrregex

References

About

Regex expression matcher in c for the subset of conventional regex

Topics

Resources

License

Stars

Watchers

Forks