comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Removing some but not all spaces in a string
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Removing some but not all spaces in a string [message #61750 is a reply to message #61749] Tue, 29 July 2008 08:40 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Jul 29, 11:27 am, David Fanning <n...@dfanning.com> wrote:
> If I am not mistaken, Mike Galloy has a version
> called STR_REPLACE that handles regular expressions.
> I found it with his white paper on regular expressions
> (a must read, by the way). Don't have a link, but
> certainly it can be found on Mike's web page:
>
STR_REPLACE is available in the ITTVIS contrib library
http://www.ittvis.com/codebank/search.asp?FID=311
Since it accepts regular expressions, I suspect I can use it instead
of Jeremy's sed command. But first I have to parse how that sed
command works.

repstr.pro is from the Astron library
http://idlastro.gsfc.nasa.gov/ftp/pro/misc/repstr.pro
and only accepts static expressions, which is how Craig was using it.

** What if you take all spaces out and just put one back in after c **
** and , ?? **

That's OK for that specific string, but I'd like to make it work for
an arbitrary string.

Thanks everyone for their suggestions. --Wayne
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Array has a corrupted discriptor, reliable?
Next Topic: error on stddev estimate

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 19:39:09 PDT 2025

Total time taken to generate the page: 0.40314 seconds