shithub: mc

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