shithub: mc

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