Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The topic ‘use some code before output text’ is closed to new replies.
Hi guys!
I need to use some code with any text on site include titles, exerpts and all other.
How to do it?
$code = preg_replace('/( | |\(){1}([№а-яА-Я]){1}(\.){0,1} /u', '$1$2$3 ', $code);
This is necessary to make the text look better when transferring lines.
Hey mischael1,
Thanks for your patience, can you explain further about this code and what it does, perhaps link to where you found it and is it for javascript or PHP?
Best regards,
Mike
It needs for fix hanging prepositions. prepositions — little words in russian. it using before words and when it last word in string it makes reading harder. i found this code here: https://qna.habr.com/q/282126
it is php code.
Hi,
Try using a plugin like Search Regex
Best regards,
Mike
Wow! Nice! Thank you very much!
Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.
Best regards,
Mike