shithub: mc

ref: 1520007d5fd0238f7ea3bf7aa7269043976bf3d6
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(".", "æ")
}