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

Home » Public Forums » archive » Re: 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 #42981 is a reply to message #42860] Fri, 04 March 2005 08:32 Go to previous messageGo to previous message
Norbert Hahn is currently offline  Norbert Hahn
Messages: 46
Registered: May 2003
Member
"Sobwom" <sobwom_joatamon@yahoo.com> wrote:

>> I have a variable:
>>
>> animal = 'Coyote'
>>
>> And I have a string:
>>
>> myString = 'My favorite animal is {1}.
>>

> Try StrSplit():
> animal = 'Coyote'
> myString = 'My favorite animal is {1}.'
> newString = StrJoin(StrSplit(myString, '\{1\}', /Regex, /Extract, $
> /Preserve_Null), animal)

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?

Norbert
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL without X on Linux
Next Topic: String Processing Question

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

Current Time: Sat Oct 11 07:32:12 PDT 2025

Total time taken to generate the page: 2.63893 seconds