String matching: Difference between revisions

m
→‎{{header|Julia}}: manners for v0.4
m (→‎{{header|Julia}}: manners for v0.4)
Line 1,539:
 
=={{header|Julia}}==
<lang julia>begins_withstartswith("abcd","ab") #returns true
search("abcd","ab") #returns 1:2, indices range where string was found
ends_withendswith("abcd","zn") #returns false
ismatch(r"ab","abcd") #returns true where 1st arg is regex string
julia>for r in each_match(r"ab","abab")
Anonymous user