Topic: changing quotes from low to high ascii (1 of 4), Read 76 times
Conf: Search and Replace
From: Deleted User
Date: Monday, September 13, 1999 11:21 AM

I am trying to create a macro that performs several search and replaces. The one I am having a big problem with is converting quotes. I want to take a text file with simple low ascii straight up and down quotes, and convert those quotes to the curly high ascii ones for a specific font.

Basically, I cannot figure out how to ignore the middle space between quotes on replace.

Replace |34 |M |34 with |210 ??? |211

Mark Lindholm

 


Topic: changing quotes from low to high ascii (2 of 4), Read 79 times
Conf: Search and Replace
From: Christian Ziemski
Date: Monday, September 13, 1999 12:26 PM


Try

Replace('\d034{.*}\d034', '\d210\1\d211', REGEXP+ALL+NOERR)


Christian

 


Topic: changing quotes from low to high ascii (3 of 4), Read 84 times
Conf: Search and Replace
From: Deleted User
Date: Monday, September 13, 1999 02:32 PM

Thanks! It worked wonderfully.

I was trying something along those lines actually, but I couldn't get |M out of my head (or the code) even when using 'regular expressions'.

Mark

 


Topic: Re: changing quotes from low to high ascii (4 of 4), Read 91 times
Conf: Search and Replace
From: Ted Green
Date: Friday, September 17, 1999 12:23 AM

At 12:29 PM 9/13/99 -0400, you wrote:
>From: "Christian Ziemski"
>Try
> Replace('\d034{.*}\d034', '\d210\1\d211', REGEXP+ALL+NOERR)

This will only work if the quoted string is all on one line
because the regular expression .* operator only works on one
line.

Otherwise you can try the following macro commands:

Repeat(ALL) {
Search(/"|M"/,ERRBREAK)
Replace(/"/,"|210")
Replace(/"/,"|211")
}


Ted.
-------------------------------------------------------------------------
Ted Green (ted@...) Greenview Data, Inc.
Web: http://www.... PO Box 1586, Ann Arbor, MI 48106
Tel: (734) 996-1300 Fax: (734) 996-1308 VEDIT - Text/Data/Binary Editor