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 #42859 is a reply to message #42850] Thu, 03 March 2005 14:14 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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. :-(

Now I see how powerful it is. Really nice. My code
is back to being elegant again! Thanks a lot.

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
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 19:29:22 PDT 2025

Total time taken to generate the page: 1.19770 seconds