WordPress.org

Forums

How to Mass Remove Link (mass deactivate URL Linked text inside posts) (7 posts)

  1. janrains
    Member
    Posted 5 years ago #

    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.

  2. dor
    Member
    Posted 5 years ago #

    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.

  3. dor
    Member
    Posted 5 years ago #

    Sorry!!

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

    It works. Tested :-)

  4. janrains
    Member
    Posted 5 years ago #

    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?

  5. janrains
    Member
    Posted 5 years ago #

    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.

  6. dor
    Member
    Posted 5 years ago #

    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/

  7. janrains
    Member
    Posted 5 years ago #

    ok thanks for your respons.

Topic Closed

This topic has been closed to new replies.

About this Topic