1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-30 06:50:31 +02:00

Add reference to the lack of "non-greedy" variants

While describing special characters, remind the reader that
"non-greedy" variants are not supported.  They might not be familiar
with POSIX extended regular expression and expect it to work.

* doc/ref/api-regex.texi: Add "non-greedy" observation
This commit is contained in:
Diogo F. S. Ramos 2014-03-26 00:27:21 -03:00 committed by Andy Wingo
parent ff040ee033
commit 4cf81b7ba0

View file

@ -38,10 +38,11 @@ regex))}.
@node Regexp Functions @node Regexp Functions
@subsection Regexp Functions @subsection Regexp Functions
By default, Guile supports POSIX extended regular expressions. By default, Guile supports POSIX extended regular expressions. That
That means that the characters @samp{(}, @samp{)}, @samp{+} and means that the characters @samp{(}, @samp{)}, @samp{+} and @samp{?} are
@samp{?} are special, and must be escaped if you wish to match the special, and must be escaped if you wish to match the literal characters
literal characters. and there is no support for ``non-greedy'' variants of @samp{*},
@samp{+} or @samp{?}.
This regular expression interface was modeled after that This regular expression interface was modeled after that
implemented by SCSH, the Scheme Shell. It is intended to be implemented by SCSH, the Scheme Shell. It is intended to be