Skip to content
This repository was archived by the owner on Dec 14, 2021. It is now read-only.

monolifed/tiny-regex-mod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c6f4c6e · Jul 17, 2020

History

22 Commits
Apr 10, 2020
Apr 10, 2020
Dec 4, 2018
Jul 17, 2020
May 29, 2019
Jul 26, 2019
Apr 10, 2020
Apr 30, 2020

Repository files navigation

tiny-regex-mod

Single file modification of tiny-regex-c by Kokke

Adds a few features and removes some minor issues:

  • made it into a single file library
  • modified to return a pointer to the start of the match (instead of an integer)
  • added option to get a pointer to the end of the match
  • removed static use of regex object
  • added quantifier operator {m,n} (also {m}, {m,})
  • added lazy quantifiers ??, *?, +? and {m,n}?
  • merged quantifier (?,*,+,{}) matching into two function (one for greedy, one for lazy)
  • added upper limits to quantifiers
  • (hopefully) fixed class range matching
  • (hopefully) fixed handling of escaped characters
  • (hopefully) fixed . matching (doesn't match \r or \n)
  • probably butchered print functionality

About

Single file modification of tiny-regex-c by Kokke

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published