Handbook
Glossary
matches? ( subject obj -- ? )
PCRE2 binding
Prev:
findall ( subject obj -- matches )
Next:
split ( subject obj -- strings )
Vocabulary
pcre2
Inputs
subject
a
string
obj
a string, compiled regular expression or a regexp literal
Outputs
?
a
boolean
Word description
Tests whether the entire subject is matched by a single occurrence of the regexp.
Definition
USING:
kernel
sequences
;
IN:
pcre2
:
matches?
( subject obj -- ? )
dupd
findall
[
nip
length
1
=
]
[
?first
?first
?last
=
]
2bi
and
;