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 #42850 is a reply to message #42849] Thu, 03 March 2005 16:07 Go to previous messageGo to previous message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
David Fanning wrote:
> Sobwom writes:
>
>
>> Try StrSplit():
>> animal = 'Coyote'
>> myString = 'My favorite animal is {1}.'
>> newString = StrJoin(StrSplit(myString, '\{1\}', /Regex, /Extract, $
>> /Preserve_Null), animal)
>
>
> Now *that's* what I'm talkin' about! :-)
>
> That whole "regular expression" business always makes
> my eyes glaze over. I think because everyone who explains
> it relies on the same UNIX man page. :-(

Have a look at http://www.rsinc.com/codebank/search.asp?FID=311. No need
for man pages, and it comes with a str_replace function.

Benjamin
[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: Fri Nov 28 23:19:29 PST 2025

Total time taken to generate the page: 1.28600 seconds