Skip to content

Instantly share code, notes, and snippets.

import text/regexp/[PCRE]
main: func
{
regexp := PCRE new() .setPattern("^http://([^/]+?)(/.+)$", PCRE CASELESS)
if (regexp matches("http://www.google.fr/images?a=pika&b=chu"))
{
"OK" println()
}