shithub: mc

ref: d5ff76398f8fb87284ea7b26121bf1262aaaae25
dir: /main.myr/

View raw version
use regex
use std

const main = {
	var found
	match regex.compile("(a|b)*")
	`std.Success re:
		found = regex.exec(re, "babaas")
		std.put("Found = %t: len = %z\n", found, re.strp)
		-> 0
		;;
	`std.Failure err:
		std.put("failed to compile regex")
		-> 1
		;;
	;;
}