Support » Plugins » How to Mass Remove Link (mass deactivate URL Linked text inside posts)

  • janrains

    (@janrains)


    as the topic title, i want to mass edit/deactivate Linked text inside all my posts, was there any plugin that can do that? please tell me or any hacks available guys? please help & assist. thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • dor

    (@dor)

    You can try re.place plugin:
    http://wordpress.org/extend/plugins/replace/

    As a wild guess:

    Search for:
    <a[^>]*>([^<]*)</a>

    Replace with:
    \1

    (not tested though)

    Explanation:
    Search for “<a” followed by any number of any letters but “>“, followed by “>“, followed by any number of any letters but “<“, followed by “</a>“. And remember parenthesed sequence of letters.

    And replace matched string with remembered sequence.

    This could help (if i understood you question,-)

    Sorry for my english.

    dor

    (@dor)

    Sorry!!

    You should search for:
    <a [^>]*>([^<]*)<\/a>

    It works. Tested 🙂

    janrains

    (@janrains)

    thanks dor for your respons, but it doesn’t save the post, it only “on the fly” effect. how could i save the change after deactivating links?

    janrains

    (@janrains)

    oh yeah dor.. please try this too..: http://urbangiraffe.com/resources/download/plugin/search-regex.zip – it does tha save function, i already try it but i really noob at regexp. if i apply the regexp you explain above in this search-regex plugin from urbangiraffe, resulting invalid regular expression : Unknown modifier ‘]’
    please test and let me know if it works.

    dor

    (@dor)

    About search regex — yes, it modifies stored data (that’s not what i needed, that’s why i wrote re.place actually).

    No, i’m afraid i wouldn’t try search and replace, sorry 🙁

    But you can ask author of this plugin, try here: http://urbangiraffe.com/plugins/search-regex/

    janrains

    (@janrains)

    ok thanks for your respons.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to Mass Remove Link (mass deactivate URL Linked text inside posts)’ is closed to new replies.