September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
|
|
@ -1,9 +1,7 @@
|
|||
startswith("abcd","ab") #returns true
|
||||
search("abcd","ab") #returns 1:2, indices range where string was found
|
||||
endswith("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")
|
||||
startswith("abcd","ab") #returns true
|
||||
findfirst("ab", "abcd") #returns 1:2, indices range where string was found
|
||||
endswith("abcd","zn") #returns false
|
||||
match(r"ab","abcd") != Nothing #returns true where 1st arg is regex string
|
||||
for r in eachmatch(r"ab","abab")
|
||||
println(r.offset)
|
||||
end
|
||||
1
|
||||
3
|
||||
end #returns 1, then 3 matching the two starting indices where the substring was found
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue