locked
Global Find and Replace RRS feed

  • Question

  • User694418659 posted

    I am wanting to find and replace all occurrences of -

    <p class = "Headsmall"> xxx </p>

    to

    <h2> xxx </h2>

    where xxx could be any characters.

    How could I do that?

    Thanks,
    Mart

    Sunday, April 10, 2016 7:06 PM

Answers

  • User-1636183269 posted

    Hello,

    If you can open your page in Notepad++ then you can replace the text like below, select Search mode Regular Expression. In Find what enter: <p class="MainHead">.*</p>

    and Replace with: <h2>WildCard</h2>

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, April 14, 2016 5:08 AM

All replies

  • User-286291038 posted

    Please use find all command ( control + Shift + F) and do a find replace. You can limit the search by only searching in *.html,htm files.

    Sunday, April 10, 2016 7:25 PM
  • User694418659 posted

    Thanks. I know how to Find and Replace all, but my question was whether it is possible to specify wildcards for the text in between the <p class="MainHead"> and the </p>.

    Monday, April 11, 2016 8:00 AM
  • User-166373564 posted

    Hi,

    Editor Find:

    Quick Find

    Ctrl+F

    Quick Find Next Result

    Enter

    Quick Find Previous Result

    Shift+Enter

    Quick Find Expand Drop Down

    Alt+Down

    Dismiss Find

    Esc

    Quick Replace

    Ctrl+H

    Quick Replace Replace Next

    Alt+R

    Quick Replace Replace All

    Alt+A

    Find in Files

    Ctrl+Shift+F

    Replace in Files

    Ctrl+Shift+H

    Regards,

    Angie

    Monday, April 11, 2016 8:00 AM
  • User694418659 posted

    I'm clearly not explaining myself very well Embarassed

    Throughout our site we have occurrences of <p class="MainHead"> ... <p>. It could be something like <p class="MainHead">Hello, how are you?</p> or <p class="MainHead">Description</p>  or <p class="MainHead">Welcome back</p>. What's in between the <p> tags could be any piece of text.

    So I'm wondering if there is a way of globally changing  or <p class="MainHead">Wildcard</p> to <h2>WildCard</h2>

    Martin

    Monday, April 11, 2016 10:34 AM
  • User-1636183269 posted

    Hello,

    If you can open your page in Notepad++ then you can replace the text like below, select Search mode Regular Expression. In Find what enter: <p class="MainHead">.*</p>

    and Replace with: <h2>WildCard</h2>

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, April 14, 2016 5:08 AM