https://github.com/kajdev/simex
A really bad simple regular expression engine
https://github.com/kajdev/simex
Last synced: 5 months ago
JSON representation
A really bad simple regular expression engine
- Host: GitHub
- URL: https://github.com/kajdev/simex
- Owner: KAJdev
- License: mit
- Created: 2021-10-24T07:05:55.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-24T08:18:15.000Z (about 4 years ago)
- Last Synced: 2025-02-09T07:29:27.042Z (11 months ago)
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simex
A really bad simple regular expression engine
```
Characters:
* Any character (stops at the first instance of the proceding character or end of string)
? Optional proceding character
Escape with backslash
```
```py
import se
expression = se.compile('some simex that can end with *')
assert expression.findall("some simex that can end with anything!") == ['some simex that can end with anything!']
```
I'm not sure why this exists. It took me like an hour to make.