Mercurial > hg > xemacs-beta
comparison man/lispref/searching.texi @ 373:6240c7796c7a r21-2b2
Import from CVS: tag r21-2b2
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:04:06 +0200 |
parents | cc15677e0335 |
children |
comparison
equal
deleted
inserted
replaced
372:49e1ed2d7ed8 | 373:6240c7796c7a |
---|---|
261 | 261 |
262 @item ? | 262 @item ? |
263 @cindex @samp{?} in regexp | 263 @cindex @samp{?} in regexp |
264 is a quantifying suffix operator similar to @samp{*}, except that the | 264 is a quantifying suffix operator similar to @samp{*}, except that the |
265 preceding expression can match either once or not at all. For example, | 265 preceding expression can match either once or not at all. For example, |
266 @samp{ca?r} matches @samp{car} or @samp{cr}, but does not match anyhing | 266 @samp{ca?r} matches @samp{car} or @samp{cr}, but does not match anything |
267 else. | 267 else. |
268 | 268 |
269 @item *? | 269 @item *? |
270 @cindex @samp{*?} in regexp | 270 @cindex @samp{*?} in regexp |
271 works just like @samp{*}, except that rather than matching the longest | 271 works just like @samp{*}, except that rather than matching the longest |
1094 This function returns the position of the start of text matched by the | 1094 This function returns the position of the start of text matched by the |
1095 last regular expression searched for, or a subexpression of it. | 1095 last regular expression searched for, or a subexpression of it. |
1096 | 1096 |
1097 If @var{count} is zero, then the value is the position of the start of | 1097 If @var{count} is zero, then the value is the position of the start of |
1098 the entire match. Otherwise, @var{count} specifies a subexpression in | 1098 the entire match. Otherwise, @var{count} specifies a subexpression in |
1099 the regular expresion, and the value of the function is the starting | 1099 the regular expression, and the value of the function is the starting |
1100 position of the match for that subexpression. | 1100 position of the match for that subexpression. |
1101 | 1101 |
1102 The value is @code{nil} for a subexpression inside a @samp{\|} | 1102 The value is @code{nil} for a subexpression inside a @samp{\|} |
1103 alternative that wasn't used in the match. | 1103 alternative that wasn't used in the match. |
1104 @end defun | 1104 @end defun |