Macaulay2 » Documentation
Packages » Macaulay2Doc > The Macaulay2 language > strings and nets > regular expressions > regexQuote
next | previous | forward | backward | up | index | toc

regexQuote -- escape special characters in regular expressions

Synopsis

Description

i1 : match("2+2", "2+2")

o1 = false
i2 : regexQuote "2+2"

o2 = 2\+2
i3 : match(oo, "2+2")

o3 = true

See also

Ways to use regexQuote :

For the programmer

The object regexQuote is a method function with a single argument.