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

Need help with find and replace expressions

New Here ,
Sep 16, 2020 Sep 16, 2020

Copy link to clipboard

Copied

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

Views

307

Translate

Translate

Report

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 panel

 

Post back if you have any questions.

 

Votes

Translate

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

Copy link to clipboard

Copied

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 panel

 

Post back if you have any questions.

 

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Hi Nancy,

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

You're welcome.  Glad it worked for you 🙂

 

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

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