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

Home » Public Forums » archive » Re: idl/gdl/strmatch
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: idl/gdl/strmatch [message #69559 is a reply to message #69548] Thu, 21 January 2010 09:29 Go to previous messageGo to previous message
oxfordenergyservices is currently offline  oxfordenergyservices
Messages: 56
Registered: January 2009
Member
On 21 Jan, 17:18, pp <pp.pente...@gmail.com> wrote:
> On Jan 21, 1:58 pm, a <oxfordenergyservi...@googlemail.com> wrote:
>
>> The only problem I have so far is that strmatch which I use a load of
>> times isn't in gdl.  Are there any simple workarounds?
>
> GDL has stregex, which can do what strmatch does, and much more.
>
>
>
>> I need the wilcard to work ie
>
>> a=['abc','def',ghi']
>
>> b='*e*'
>
>> i=where(strmatch(a,b) eq 1)
>
>> gives i=1
>
> That particular example can be done with
>
> b='e'
> i=where(stregex(a,b,/boolean))

thanks. i may try that. i wrote a function that does it via the
commmand line, but a bit ugly

any ideas for a gdl strsplit('aaa bbbb',/extract)??

Thanks

Russ
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Map projection header file question
Next Topic: Re: current directory changes unexpectedly

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

Current Time: Sat Oct 11 10:15:25 PDT 2025

Total time taken to generate the page: 0.56241 seconds