DTP


 
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, 01:49 PM   #1
dacoyle
Member
 
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.

Thanks,

Dennis

   
__________________
Dennis
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 08:46 PM
Need Regex help Andrew B. General Publishing Topics 7 05-08-2011 09:56 AM
RegEx help dacoyle Web Site Building & Maintenance 6 04-14-2009 08:48 AM
meta tags and leading one on...'-}} terrie Web Site Building & Maintenance 4 08-09-2006 03:02 PM
Useful info on meta tags ktinkel Web Site Building & Maintenance 3 04-22-2005 01:37 PM


All times are GMT -8. The time now is 06:16 AM.


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