String matching: Difference between revisions
Content added Content deleted
m (Add Julia 1.0 version) |
|||
Line 1,675: | Line 1,675: | ||
3: Does 'tacoloco' end with 'co'? Yes.</pre> |
3: Does 'tacoloco' end with 'co'? Yes.</pre> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|jq}}== |
=={{header|jq}}== |
||
Line 1,731: | Line 1,715: | ||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
end #returns 1, then 3 matching the two starting indices where the substring was found |
|||
</lang> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
end |
|||
1 |
|||
⚫ | |||
=={{header|K}}== |
=={{header|K}}== |
||
Line 1,764: | Line 1,748: | ||
_ss["abcdabceabc";"abc"] / location of matches |
_ss["abcdabceabc";"abc"] / location of matches |
||
0 4 8</lang> |
0 4 8</lang> |
||
=={{header|Kotlin}}== |
=={{header|Kotlin}}== |
||
Line 1,791: | Line 1,776: | ||
[[File:LabVIEW_Character_matching_2.png]]<br/> |
[[File:LabVIEW_Character_matching_2.png]]<br/> |
||
[[File:LabVIEW_Character_matching_3.png]] |
[[File:LabVIEW_Character_matching_3.png]] |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|Lang5}}== |
=={{header|Lang5}}== |