Introduction
You use substring extraction to get a part of a text stored in a variable. It helps you pick only the piece you need.
You want to get the first few letters of a filename to check its type.
You need to extract a date from a longer string like '2024-06-15_report.txt'.
You want to get a user ID from a string that contains extra info.
You want to shorten a long message by taking only the first 10 characters.