shithub: mc

ref: 750f64d65eaa7af67dc7377ee948dda823c68476
dir: /main.myr/

View raw version
use regex
use std

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