Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 deletions
9
Task/String-matching/Julia/string-matching.julia
Normal file
9
Task/String-matching/Julia/string-matching.julia
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
begins_with("abcd","ab") #returns true
|
||||
search("abcd","ab") #returns 1:2, indices range where string was found
|
||||
ends_with("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")
|
||||
println(r.offset)
|
||||
end
|
||||
1
|
||||
3
|
||||
Loading…
Add table
Add a link
Reference in a new issue