[semidet]re_match(+Regex, 
+String)
?- re_match("^needle"/i, "Needle in a haystack").
true.
Options:
true, match only at the first positionfalse)anycrlf, \R only matches CR, LF or CRLF. If unicode,
\R matches all Unicode line endings. Subject string is the 
end of a line (default false)true)true)false)any, recognize any Unicode newline sequence, if anycrlf, 
recognize CR, LF, and CRLF as newline sequences, if cr, 
recognize CR, if lf, recognize LF and finally if crlf 
recognize CRLF as newline.| Regex | is the output of re_compile/3, 
a pattern or a term Pattern/Flags, where Pattern is an atom or string. 
The defined flags and there related option for re_compile/3 
are below.
 
 
 
  |