RosettaCodeData/Task/String-matching/00DESCRIPTION

17 lines
546 B
Text
Raw Permalink Normal View History

2016-12-05 22:15:40 +01:00
{{basic data operation}}
[[Category: String manipulation]]
[[Category:Simple]]
2013-04-10 16:57:12 -07:00
2016-12-05 22:15:40 +01:00
;Task:
Given two strings, demonstrate the following three types of string matching:
2013-04-10 16:57:12 -07:00
2016-12-05 22:15:40 +01:00
::#   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>
2013-04-10 16:57:12 -07:00
Optional requirements:
2016-12-05 22:15:40 +01:00
::# &nbsp; Print the location of the match for part 2
::# &nbsp; Handle multiple occurrences of a string for part 2.
<br><br>