Answer the question
In order to leave comments, you need to log in
How to optimally find the first occurrence of a substring before any character that is not a letter?
Let's say there is a string, $str = 'Синее море'
but it can also be $str = 'Синее. Море'
How is it best to find "Blue"? That is, find the first occurrence of a substring up to a non-letter character?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question