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

Home » Public Forums » archive » String Processing Question
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: String Processing Question [message #42993 is a reply to message #42864] Fri, 04 March 2005 01:06 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
David Fanning wrote:

> Folks,
>
> My mind goes into shutdown mode whenever the subject of
> string processing comes up. It always has, I don't know
> why.
>
> I have a method of doing this, but is looks like
> a crock. Here is the situation.
>
> I have a variable:
>
> animal = 'Coyote'
>
> And I have a string:
>
> myString = 'My favorite animal is {1}.

my_string=replace_string(my_string,'{1}',animal)

You find this function in our library
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_source/idl _html/dbase
replace_string_dbase.pro.html

This was written before the regex stuff was implemented in idl.

cheers
Reimar


--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: String Processing Question
Next Topic: Arrays suck. Loops rock.

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

Current Time: Sun Nov 30 04:43:12 PST 2025

Total time taken to generate the page: 1.68854 seconds