Adds a custom regex pattern to the global library for the current session.

xp_register(name, pattern)

Arguments

name

A character string to name the pattern.

pattern

A regex string or regexpert object.