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

Home » Public Forums » archive » Re: regular expressions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: regular expressions [message #15710] Fri, 04 June 1999 00:00
steinhh is currently offline  steinhh
Messages: 260
Registered: June 1994
Senior Member
In article <3757BAA0.D64AFA37@astro.estec.esa.nl>
Michael Werger <mwerger@astro.estec.esa.nl> writes:

> for a complex batch processing in IDL I need to do some regular
> expression handling. Of course I can do this like:
[..]
> so on. Did anyone already wrote some routines like
> regexp_replace and regexp_match (I think these names are speaking
> for themselves? - like the tcl routines regsub and regexp?
>
> Suggestions to improve the above routine are also welcome.


Take a look at the bottom of this page:

http://www.astro.uio.no/~steinhh/idl/additions.html

They're designed to work with standard unix regcomp/regexec
functions, but see e.g. http://sunland.gsfc.nasa.gov/info/regex/Top.html
for how to use the GNU regular expression library with the same
interface.

Of course, regexp_replace can be implemented by replacing
subexpressions and then putting the string together again...

Regards,

Stein Vidar
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: OOB array indexing with an array gives no error message
Next Topic: A strange behaviour of parameters passing

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

Current Time: Fri Oct 10 13:22:04 PDT 2025

Total time taken to generate the page: 1.51557 seconds