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

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:

  • regexQuote(String)

For the programmer

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


The source of this document is in Macaulay2Doc/functions/regex-doc.m2:346:0.