Regexp Portability Layer.
This package provides a common API over cl-ppcre or #+clisp regexp.
Use:
(select :ppcre) ; or
#+clisp (select :regexp) ; when the REGEXP package is available.
to choose between the two currently available regexp engines.
License:
AGPL3
Copyright Pascal J. Bourguignon 2015 - 2015
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program.
If not, see <http://www.gnu.org/licenses/>
|
*engine* |
variable |
Current possible values are :ppcre or :regexp. It is possible to dynamically bind this variable temporarily to switch the engine.
Initial value: PPCRE
-MATCH-BEGINNING
-MATCH-END
-MATCH-STRING
-REGEXP-COMPILE
-REGEXP-MATCH-ANY
-REGEXP-QUOTE-EXTENDED
-REGEXP-SPLIT
-STRING-MATCH
|
(engines) |
function |
RETURN: A list of designators for the available regexp engines.
MATCH-BEGINNING
MATCH-END
MATCH-STRING
REGEXP-COMPILE
REGEXP-MATCH-ANY
REGEXP-QUOTE-EXTENDED
REGEXP-SPLIT
|
(select engine) |
function |
Sets the `*ENGINE*`.
STRING-MATCH