[TYPO3-english] case-insensitive preg_replace on cyrilic letters

Lina Wolf liste at linawolf.de
Tue Aug 24 18:00:39 CEST 2010


  Does anyone know how to make preg_replace with modifier i (for case 
insensitivity) work on cyrilic letters?

calling preg_replace with this regular expression:

	/(?!<.*?)(?<=\s|[[:punct:]])Капацитет(?=\s|[[:punct:]])(?![^<>]*?>)/i


Should replace corresponding lowercase word in the following text:
достатъчен капацитет, за да продължите

If the writing is exactly the same it works fine. If we do the same with 
latin letters it also works.

Any ideas?

-- 
LG Lina



More information about the TYPO3-english mailing list