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 #42997 is a reply to message #42850] Thu, 03 March 2005 17:58 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Benjamin Hornberger <benjamin.hornberger@stonybrook.edu> writes:
> 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.

...and the IDL Astronomy Library has the REPSTR() function.

Craig


--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[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: Sun Oct 12 00:32:26 PDT 2025

Total time taken to generate the page: 0.95893 seconds