Answer the question
In order to leave comments, you need to log in
What's the regular expression for splitting text between small and capital letter?
Good afternoon.
There is a text in which the names of the streets are "glued together", for example: Velyka Zhytomyrska
Please tell me the regular expression to separate "аЖ" with a space, i.е. find two characters (small letter and capital letter) and put "space" between them
Answer the question
In order to leave comments, you need to log in
preg_replace regular expression regexr.com/3bvkr and replace with"$1 $2"
A special case of the previous answer for php and unicode + the letter Y:
preg_replace('/([а-яё])([А-ЯЁ])/u', '$1 $2', 'ВеликаЖитомерська')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question