shithub: mc

ref: fd6e1d4f4da61b1e6050e12a5d9bf41f422f5d1b
dir: /main.myr/

View raw version
use regex
use std

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