Mercurial > hg > octave-nkf
changeset 16919:908b4956cbfd
doc: remove '\b' from list of special regexp sequences (bug #38778).
* libinterp/corefcn/regexp.cc(Fregexp): remove '\b' from list of special regexp
sequences (bug #38778).
author | Rik <rik@octave.org> |
---|---|
date | Sun, 07 Jul 2013 17:55:38 -0700 |
parents | ab46b5c77669 |
children | 53eaa83e4181 |
files | libinterp/corefcn/regexp.cc |
diffstat | 1 files changed, 13 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/regexp.cc +++ b/libinterp/corefcn/regexp.cc @@ -647,11 +647,18 @@ In addition, the following escaped characters have special meaning.\n\ \n\ @table @code\n\ -@item \\b\n\ -Match a word boundary\n\ +\n\ +@item \\d\n\ +Match any digit\n\ \n\ -@item \\B\n\ -Match within a word\n\ +@item \\D\n\ +Match any non-digit\n\ +\n\ +@item \\s\n\ +Match any whitespace character\n\ +\n\ +@item \\S\n\ +Match any non-whitespace character\n\ \n\ @item \\w\n\ Match any word character\n\ @@ -665,17 +672,8 @@ @item \\>\n\ Match the end of a word\n\ \n\ -@item \\s\n\ -Match any whitespace character\n\ -\n\ -@item \\S\n\ -Match any non-whitespace character\n\ -\n\ -@item \\d\n\ -Match any digit\n\ -\n\ -@item \\D\n\ -Match any non-digit\n\ +@item \\B\n\ +Match within a word\n\ @end table\n\ \n\ Implementation Note: For compatibility with @sc{matlab}, ordinary escape\n\