| Did you know ... | Search Documentation: |
| Get methods |
|text_buffer|fragment,
start=[int], end=[int] -> length=int<-pattern
with the given object. The match starts at start (default
0) and should not pass end (default end of the object
matched). The regex<-match
variant returns the number of characters matched. For both methods, regex<-register_start,
regex<-register_value,
etc. may be used afterwards.
See also regex->search
and regex->match.
?- get(regex(''), quote, '^hello*', S),
get(S, value, T).
S = @27463123
T = '\^hello\*'
->search->search->search|text_buffer|fragment,
start=[int], end=[int] -> start=int<-register_start, regex<-register_end
and
regex<-register_value
may be used to get information on the location of the match.
If end is smaller than start, the search is
executed backwards. The regex<-search
variant returns the regex<-register_start.
Inherits description from: regex->search