DTP


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


Go Back   Desktop Publishing Forum > General Discussions > Print Production & Automation

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 08-05-2009, 01:07 AM   #1
Mike
Staff
 
Mike's Avatar
 
Join Date: Oct 2004
Location: Llanwrtyd Wells
Posts: 1,450
Default Tricky search and replace

Quote:
Originally Posted by Benwiggy View Post
That's where grep searching works wonders.
Any idea as to how I'd go about using grep to replace double quotes with single while ensuring that quotes within quotes are double without also substituting apostrophes in possessives or abbreviations?

He said, "I was told, 'The Jones' songs of the '60s can't be compared to today's 'cos they're older,' by a real aficionado."

which needs to become:

He said, 'I was told, "The Jones' songs of the '60s can't be compared to today's 'cos they're older," by a real aficionado.'

   
__________________
Mike

www.welshframing.com
Mike 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
Just the fax: fix or replace? marlene Business Matters 24 04-18-2007 06:31 AM
Tricky Font ID dthomsen8 Fonts & Typography 5 04-17-2007 11:56 AM
DW Search/Replace Regular Expressions Linda Baldwin Web Site Building & Maintenance 17 05-17-2006 07:41 AM
Replace a table with CSS ilox Web Design 7 08-22-2005 07:07 AM
You think fonts are tricky today? ktinkel Fonts & Typography 10 06-13-2005 01:18 PM


All times are GMT -8. The time now is 12:22 PM.


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