RosettaCodeData/Task/String-matching/00-TASK.txt

21 lines
572 B
Plaintext

{{basic data operation}}
[[Category: String manipulation]]
[[Category:Simple]]
;Task:
Given two strings, demonstrate the following three types of string matching:
::#   Determining if the first string starts with second string
::#   Determining if the first string contains the second string at any location
::#   Determining if the first string ends with the second string
<br>
Optional requirements:
::# &nbsp; Print the location of the match for part 2
::# &nbsp; Handle multiple occurrences of a string for part 2.
{{Template:Strings}}
<br><br>