WordPress.org

Ready to get started?Download WordPress

Forums

Search Regex
replace text between two tags (1 post)

  1. fabio.grasso
    Member
    Posted 6 months ago #

    Dear all
    I state that I am not a regex expert, but I'm trying to create a code based on some of the examples found on the web. My need is to replace the string

  2. with the string <li class="ingredient"> in all my posts. This change, however, must be done only for text between the shortcode [ingredients title = XXXX] and [/ingredient].

    I've found the regex for search only the text between the shortcode:
    /(\[ingredients.*?\[\/ingredients\])/ism

    Anyone can help me for add to this the search of the

  3. code and then the replace with <li class="ingredient">?

    thanks for your help

  4. http://wordpress.org/plugins/search-regex/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags