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

Home » Public Forums » archive » Re: file_search: need work around for filenames with square brackets [ ]
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: file_search: need work around for filenames with square brackets [ ] [message #66806] Sat, 06 June 2009 07:03 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
rklein writes:

> the routines for reading FITS-files in the IDL astro library use
> file_search() internally. Now I want to read a file name with square
> brackets (as this "[" and " this" ]" ) in it, but file_search seems to
> interpret the square brackets as regular expression. Is there a way to
> escape the brackets?
> Other suggestions?
> I don't really want to change the library routines not rename the
> files I have to read.

Yeah, I hear you. I want to play tennis and hike in
the mountains instead of going to work every day. :-(

Have you tried a back slash as an escape character?

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Previous Topic: map_proj_* help
Next Topic: IDLDOC 3.2 Index page not as interesting as it could be...

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

Current Time: Thu Oct 09 11:26:45 PDT 2025

Total time taken to generate the page: 0.79546 seconds