Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1409326

    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.

    #1409558

    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

    #1409564

    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.

    #1409575

    Hi,
    Try using a plugin like Search Regex

    Best regards,
    Mike

    #1409576

    Wow! Nice! Thank you very much!

    #1409577

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘use some code before output text’ is closed to new replies.