String matching: Difference between revisions

Content added Content deleted
m (wiki trickery)
Line 3: Line 3:
Given two strings, demonstrate the following 3 types of matchings:
Given two strings, demonstrate the following 3 types of matchings:


1. Determining if the first string starts with second string
# Determining if the first string starts with second string
2. Determining if the first string contains the second string at any location
# Determining if the first string contains the second string at any location
3. Determining if the first string ends with the second string
# Determining if the first string ends with the second string


Optional requirements:
Optional requirements: