shithub: mc

ref: b769b88bbc3e0ddcef7991e73b2582d472f08d89
dir: /libregex/test/unicode.myr/

View raw version
use std
use regex

use "testmatch.use"

const main = {
	testmatch(".*bæc", "Abæc")
	testmatch("(\\p{L}*)bæc\\P{L}*", "Aabæc%!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
        /* test various syntaxen */
	testmatch("(\\pL*)bæc\\PL*", "Aabæc%!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
	testmatch("(\\p{Letter}*)bæc\\P{Uppercase_Letter}*", "Aabæc%!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
	testmatch(".", "æ")
}