Mike,
 
The following works for me in 9.1, running from R> prompt:
 
R>SET VAR x TEXT = '(Comment 1) (Comment 2)'
 
R>show var x
(Comment 1) (Comment 2)
 
R>SET VAR x = (SRPL(.x,') (',', ',0))
 
R>show var x
(Comment 1, Comment 2)
 
Is this what you need?
 
Javier,
 
Javier Valencia, PE
913-829-0888 Office
913-915-3137 Cell
913-649-2904 Fax
Visit us at www.vtgonline.com <http://www.vtgonline.com/> 
 
  _____  

From: [email protected] [mailto:[email protected]] On Behalf Of Michael J.
Sinclair
Sent: Monday, July 04, 2011 11:39 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Help with SRPL syntax
 
Hello all,
 
I would like to use the SRPL function to replace each instance of 
 
) (    {a right parenthesis, followed by a space followed by a left
parenthesis}
 
with a comma followed by a space
 
As an example, I would like to change this....
 
(Comment 1) (Comment 2)   to this
(Comment 1, Comment 2)
 
 
I tried (SRPL(.vtext, ') (', ', ',0))
but that did not work.
How do I do it?
Mike 

Reply via email to