Support » Plugin: Search Regex » Instructions for regex pattern, hack fix?

  • Hi folks, I am on a shared server and am seeing posts being hacked with incorrect links like

    <a style="text-decoration:none" href="/vardenafil-prices-costco">.</a>'

    I can’t find instructions on (I’m not a regex user normally), on how to search for this pattern in this plugin. I tried <a style="text-decoration:none" * </a>
    but that didn’t work…
    Please help me with some simple guidelines.

    • This topic was modified 2 years, 9 months ago by jefferisp7.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey, I found a site that helped me and I used this for a search pattern:
    <a style="text-decoration:none" href=".*".*a>

    However, when I ran the replace with an empty replace value, it left this result: <>

    How do I replace with a space or nothing at all?
    TIA,
    Jeff

    • This reply was modified 2 years, 9 months ago by jefferisp7.

    Hi jefferisp7, I would try something like :
    Search pattern : @<a style="text-decoration:none" href=".*".*a>@
    Replace pattern :
    Note the @ character as a delimiter and let Replace pattern empty.
    Double check Search, Replace, before Replace and save !-)
    Good luck!

    • This reply was modified 2 years, 5 months ago by Franck-AWO.

    And check the Regex: box 😉

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Instructions for regex pattern, hack fix?’ is closed to new replies.