shithub: mc

ref: a7ba738bca21b54d6cf2bd5cdfe39b00f3d4b350
dir: /main.myr/

View raw version
use regex
use std

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