Lively discussions on the graphic arts and publishing — in print or on the web

Go Back   Desktop Publishing Forum > General Discussions > Web Design

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 10-25-2011, 12:49 PM   #1
dacoyle's Avatar
Join Date: Aug 2005
Location: Arlington, VA (across the river from Washington, DC)
Posts: 560
Default RegEx help needed to close <p> tags.

Hey, folks, long time no see. How's everyone been?

My office is currently doing a full redesign and, unlike the last time ~10 years ago, we're moving from static HTML to a really cool CF system we built in house. Some of the pages we're converting haven't been touched in more than a decade so we have a lot of re-coding to do to get them to validate to current standards.

We have shortcuts for most of the fixes, but one of the most time consuming is fixing pages where the <p> tags don't have corresponding </p> tags. Is it possible to write a RegEx that can look for a <p> tag, look for the NEXT <p> tag, and insert a </p> if there isn't one there? Ideally, ignoring white space.

We have Dreamweaver, HomeSite, and TextPad available so please specify if the RegEx is tool-specific.



dacoyle is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Regex Question Andrew B. General Publishing Topics 2 09-20-2011 07:46 PM
Need Regex help Andrew B. General Publishing Topics 7 05-08-2011 08:56 AM
RegEx help dacoyle Web Site Building & Maintenance 6 04-14-2009 07:48 AM
meta tags and leading one on...'-}} terrie Web Site Building & Maintenance 4 08-09-2006 02:02 PM
Useful info on meta tags ktinkel Web Site Building & Maintenance 3 04-22-2005 12:37 PM

All times are GMT -8. The time now is 09:42 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Contents copyright 2004–2018 Desktop Publishing Forum and its members.