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

_______________________________________________
TYPO3-english mailing list
[email protected]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Reply via email to