FunctionPackage: exclToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.2
Unrevised from 8.1 to 8.2.
8.1 version

quote-re

Arguments: string

This convenience function accepts a string argument and returns a regular expression that matches that string literally, giving no special interpretation usually given to the special characters in regexp string syntax.

This function is implemented by simply returning a tree form regexp, wrapping a :sequence regexp around the argument string.

Example

(regexp:quote-re "()")
  ==>
(:sequence "()")

(regexp:match-re "()" "(defun foo () ...)")
  ==>
t
""
""

(regexp:match-re (regexp:quote-re "()") "(defun foo () ...)")
==>
t
"()"

The symbol naming this operator is also exported from the regexp package.

See The new regexp2 module in regexp.htm for further information on this function and the regexp2 module.


Copyright (c) 1998-2016, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.1 page.
Created 2010.1.21.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.2
Unrevised from 8.1 to 8.2.
8.1 version