• Resolved otechwebmaster

    (@otechwebmaster)


    If you use regex it will crash your theme!
    Read their reviews before installing this plug-in.
    I would consider it broken.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Marios Alexandrou

    (@marios-alexandrou)

    Regex won’t crash your theme unless you don’t use it correctly. Regex is a powerful tool, but it is tricky to use. I’ve been using the regex functionality myself for years and it works fine.

    Thread Starter otechwebmaster

    (@otechwebmaster)

    Since I am not too familiar with it I looked it up to create the correct formula.
    I even use a test site where you can test the formula so that it works correctly, which it did.
    The results is that the front end goes totally white. Why does it do that?

    Plugin Author Marios Alexandrou

    (@marios-alexandrou)

    A white screen usually means that there’s a problem with the regex rule. One thing people often miss is that the first and last character of the regex should be a forward slash i.e. /

    The second most common error is that the rule matches more than expected. For example, some people will think they’re matching a word on the page, but they end up matching that word in URLs to CSS or JS files causing their site to break until they correct or remove the rule.

    Paste the rule in this thread and maybe the problem will be something I can identify.

    Can u give me a simple example:

    <span class=”wcpt-text wcpt-1549965807747″>Buy here</span>

    I want to change Buy here to “BUY”

    The “wcpt-1549965807747” is a random number that is different on all buttons

    This did work for me

    Find:
    /Buy here/

    Replace With:
    BUY

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘regex’ is closed to new replies.