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
String Processing Question [message #42864] Thu, 03 March 2005 12:42 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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}.

I want to replace "{1}" with "Coyote". What is the
best way to do that, given that "{1}' can occur
anywhere in the string?

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[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 03:53:49 PST 2025

Total time taken to generate the page: 0.72204 seconds