shithub: mc

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