https://github.com/monolifed/tiny-regex-mod
Single file modification of tiny-regex-c by Kokke
https://github.com/monolifed/tiny-regex-mod
header-only regex
Last synced: 29 days ago
JSON representation
Single file modification of tiny-regex-c by Kokke
- Host: GitHub
- URL: https://github.com/monolifed/tiny-regex-mod
- Owner: monolifed
- License: unlicense
- Archived: true
- Created: 2018-12-04T03:08:52.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2021-07-15T18:54:16.000Z (almost 4 years ago)
- Last Synced: 2024-11-05T16:49:04.274Z (6 months ago)
- Topics: header-only, regex
- Language: C
- Size: 21.5 KB
- Stars: 34
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- AwesomeCppGameDev - tiny-regex-mod - regex-c by Kokke (C++)
README
# tiny-regex-mod
Single file modification of [tiny-regex-c](https://github.com/kokke/tiny-regex-c) by KokkeAdds 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