Concept Flow - String searching and extraction
Start with input string
Search for substring or pattern
Is substring found?
No→Return -1 or empty
Yes
Extract substring or index
Use extracted data
End
The program starts with a string, searches for a substring or pattern, checks if found, then extracts or returns the index, and finally uses the extracted data.