• Resolved husk3r

    (@husk3r)


    Hello, i have my regex here to find url from a certain domain, i have tested it here and it seems to work
    https://www.regextester.com/
    the regex code is :

    <a href="(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)(example\.com|example\.org|example\.net)[^>]*>([\s\S]*?)<\/a>
    

    I want to match the link html code for an specific domain , replace it with nothing but leaving the anchor text alone
    Is that possible?

    • This topic was modified 2 years, 1 month ago by husk3r.
    • This topic was modified 2 years, 1 month ago by husk3r.
    • This topic was modified 2 years, 1 month ago by husk3r.
Viewing 1 replies (of 1 total)
  • Plugin Author John Godley

    (@johnny5)

    I can’t say whether that particular regex will work or do the function you want. If it is correct and performs the replacement that you want then it should work within the context of the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Not sure how to do this’ is closed to new replies.