Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kritzcreek/motoko-regex
Simple Regexes for Motoko
https://github.com/kritzcreek/motoko-regex
Last synced: about 2 months ago
JSON representation
Simple Regexes for Motoko
- Host: GitHub
- URL: https://github.com/kritzcreek/motoko-regex
- Owner: kritzcreek
- License: apache-2.0
- Created: 2021-03-08T15:16:47.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-09T14:45:41.000Z (almost 4 years ago)
- Last Synced: 2024-11-14T04:33:25.543Z (3 months ago)
- Language: Modelica
- Size: 15.6 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-motoko - motoko-regex - Simple regex matching for Motoko Text. (Libraries / Text processing)
- awesome-motoko - motoko-regex - Simple regex matching for Motoko Text. (Libraries / Text processing)
README
# motoko-regex
Simple regex matching for Motoko Text.
This project is in its very early stages and primarily serves as an example
of how to structure a Motoko library.## Example
```motoko
import Regex "mo:regex/Regex";assert(Regex.test(#rep(#seq(#char('A'), #char('B'))), "ABABABABAB"));
assert(not Regex.test(#rep(#seq(#char('A'), #char('B'))), "ABA"));
```## Building
- Install [`vessel`](https://github.com/dfinity/vessel)
- Run `make check`, `make test`, or `make docs`