Strings In Depth7 / 18
Up next

Search a string

let path = "report.pdf"
print(path.contains("."))
print(path.hasPrefix("report"))
print(path.hasSuffix(".pdf"))
What you're solving

contains, hasPrefix, hasSuffix