Skip to content

kritzcreek/motoko-regex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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
  • Run make check, make test, or make docs