Answer the question
In order to leave comments, you need to log in
How to check the first 3 characters in a string for a match?
How to check the first 3 characters in a string for a match and if they match the given value - remove them from the string?
Thank you.
Answer the question
In order to leave comments, you need to log in
if the characters are known, then just do a str replace.
If they are, then they will be deleted, if not, then nothing will happen.
You don't really need to cut the regulator.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question