Handbook
Glossary
matches? ( string regexp -- ? )
Regular expressions
ยป
Matching operations with regular expressions
Next:
re-contains? ( string regexp -- ? )
Vocabulary
regexp
Inputs
string
a
string
regexp
a
regexp
Outputs
?
a
boolean
Word description
Tests if the string as a whole matches the given regular expression.
Definition
USING:
classes
kernel
regexp.private
strings
;
IN:
regexp
:
matches?
( string regexp -- ? )
[
string
check-instance
]
dip
[
end/start
]
2keep
match-index-from
[
=
]
[
drop
f
]
if*
;