HP3000-L Archives

July 2001, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Paul Scott <[log in to unmask]>
Reply To:
Date:
Mon, 23 Jul 2001 11:11:08 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (61 lines)
Thank you, that worked perfectly.

-----Original Message-----
From: Paul H Christidis [mailto:[log in to unmask]]
Sent: Monday, July 23, 2001 10:49 AM
To: Paul Scott
Cc: [log in to unmask]
Subject: Re: repl delimiters



Paul,

I think the problem is related to the fact that you are de-referencing the
"record" variable.

Try it as:  setvar record1 repl(record,',',';')

Regards
Paul Christidis

Example:
:setvar a "this is ""a test'"
:setvar b repl(a,'"',"'")
:showvar ?
A = this is "a test'
B = this is 'a test'





I am having some trouble this morning using the repl function on a string
that has matched pairs of double quotes and occasionally single quotes that
are not matched.

I have a ci script running to read in one record at a time in to the
variable RECORD. I then need to replace certain strings within that
variable, but the fact that I have both double and single quotes is giving
me grief.

What other delimiters are available for the repl function, or what is
another solution?

I have tried colons, slashes, and pipes (:,/,|) to no avail. My function
looks like:
setvar record1 repl('!record',',',';')     replace commas w/ semicolons.

Thanks in advance,

Paul Scott
Problem Solved
(707) 451-2611
[log in to unmask]

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2