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

Home » Public Forums » archive » regular expressions
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: Regular expressions [message #22380 is a reply to message #15713] Fri, 10 November 2000 00:00 Go to previous messageGo to previous message
Brian Jackel is currently offline  Brian Jackel
Messages: 34
Registered: January 1998
Member
This has been around for a couple versions (since 5.3?)

"The STREGEX function performs regular expression matching against the
strings
contained in StringExpression. STREGEX can perform either a simple
boolean
True/False evaluation of whether a match occurred, or it can return the
position
and offset within the strings for each match. The regular expressions
accepted
by this routine, which correspond to "Posix Extended Regular
Expressions", are
similar to those used by such UNIX tools as egrep, lex, awk, and Perl."

Brian


James Tappin wrote:
>
> Does there exist a routine for regular expression matching in IDL?
>
> I'm thinking of something along the lines of an extended STR_SEP that could
> (say) separate a string into components separated by 0 or 1 commas and an
> arbitrary number of spaces.
>
> I could do it by spawning a perl script but that's not too pretty and I
> can't see an _easy_ way to do it natively.
>
> James
>
> --
> +------------------------+-------------------------------+-- -------+
> | James Tappin | School of Physics & Astronomy | O__ |
> | sjt@star.sr.bham.ac.uk | University of Birmingham | -- \/` |
> | Ph: 0121-414-6462. Fax: 0121-414-3722 | |
> +--------------------------------------------------------+-- -------+
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Time convertion
Next Topic: Re: curvefit Q

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

Current Time: Wed Oct 08 19:59:16 PDT 2025

Total time taken to generate the page: 0.00491 seconds