Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Need help with find and replace expressions

New Here ,
Sep 16, 2020 Sep 16, 2020

Hi,

I have over 500 div tags with various page ids. 

Example:

<div id="page_5">
<div id="id5_1">
<div id="id5_2">
<div id="page_6">
<div id="id6_1">

What expression in the search and replace can I use to remove ALL div tags?

Thanks

349
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 16, 2020 Sep 16, 2020

You don't need regular expressions to remove <div> tags.

NOTE:  Back up your site folder before you perform a site wide Find & Replace because you cannot Undo this.

 

Use Ctrl + Shift + F.

Click on Advanced tab.  See screenshot.

This will remove ALL divsion tags from your markup.  To refine your search, Click the + sign and add an ID attribute.

 

Find & Replace panelFind & Replace panelexpand image

 

Post back if you have any questions.

 

Translate
Community Expert ,
Sep 16, 2020 Sep 16, 2020

You don't need regular expressions to remove <div> tags.

NOTE:  Back up your site folder before you perform a site wide Find & Replace because you cannot Undo this.

 

Use Ctrl + Shift + F.

Click on Advanced tab.  See screenshot.

This will remove ALL divsion tags from your markup.  To refine your search, Click the + sign and add an ID attribute.

 

Find & Replace panelFind & Replace panelexpand image

 

Post back if you have any questions.

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 16, 2020 Sep 16, 2020

Hi Nancy,

You're simply amazing!  That worked!  Thanks so much.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 17, 2020 Sep 17, 2020
LATEST

You're welcome.  Glad it worked for you 🙂

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines