Jump to content

Regular expressions: Difference between revisions

m
m (→‎{{header|C#}}: removed unnecessary characters)
Line 162:
#load "str.cma";;
let str = "I am a string";;
try
if ignore(Str.string_matchsearch_forward (Str.regexp ".*string$") str 0 then);
print_endline "ends with 'string'"
with Not_found -> ()
;;
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.