Skip to content

Commit

Permalink
regex: rm mention of cl-interpol, uncomplete and not bringing much
Browse files Browse the repository at this point in the history
for #511
  • Loading branch information
vindarel committed Dec 21, 2023
1 parent d0cfac8 commit 7f5a7ee
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions regexp.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,27 +144,6 @@ assigning the matching fragment to the variable:
(ppcre:regex-replace pat "abc" "A"))
~~~


### Syntactic sugar

You might like to use CL-PPCRE with the
[**cl-interpol**](https://edicl.github.io/cl-interpol/#regular)
library. cl-interpol is a library for Common Lisp which modifies the
reader in a way that introduces interpolation within strings similar
to Perl, Scala, or Unix Shell scripts.

In addition to loading the CL-INTERPOL library, initialization call
must be made to properly configure the Lisp reader. This is
accomplished by either calling the `enable-interpol-syntax` function
from the REPL or placing that call in the source file before using any
of its features:

~~~lisp
(interpol:enable-interpol-syntax)
~~~

In this mode you can write regular expressions in-between `#?/` and `/`.

## See more

- [cl-ppcre on common-lisp-libraries.readthedocs.io](https://common-lisp-libraries.readthedocs.io/cl-ppcre/) and read on: `do-matches`, `do-matches-as-strings`,
Expand Down

0 comments on commit 7f5a7ee

Please sign in to comment.