12 lines
470 B
Plaintext
12 lines
470 B
Plaintext
{{basic data operation}}
|
|
[[Category: String manipulation]] [[Category:Simple]]
|
|
Given two strings, demonstrate the following 3 types of matchings:
|
|
|
|
# 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
|
|
|
|
Optional requirements:
|
|
# Print the location of the match for part 2
|
|
# Handle multiple occurrences of a string for part 2.
|