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 #42980 is a reply to message #42864] Fri, 04 March 2005 08:40 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Norbert Hahn writes:

> Why is there a need to use /Regex and thusly quoting the braces?
>
> Wouldn't
>
> StrJoin(StrSplit(myString, '{1}', /Extract, /Preserve_Null), animal)
>
> be sufficient?

IDL> animal = 'Coyote'
IDL> myString = 'My favorite animal is {1}.
IDL> print, StrJoin(StrSplit(myString, '{1}', /Extract, /Preserve_Null),
animal)
My favorite animal is CoyoteCoyoteCoyote.

It's good for emphasis, but beyond that, I think
the previous example is better. :-)

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 06:35:15 PST 2025

Total time taken to generate the page: 0.32065 seconds