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

Home » Public Forums » archive » Re: extracting numbers
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: extracting numbers [message #48033 is a reply to message #48028] Wed, 22 March 2006 23:43 Go to previous message
Klaus Scipal is currently offline  Klaus Scipal
Messages: 45
Registered: November 1997
Member
Try following

tmp=strsplit(string,['=/'],/extract)
number=float(tmp[1])

cheers, Klaus



<kl_tah@hotmail.com> wrote in message
news:1143089539.095096.210300@u72g2000cwu.googlegroups.com.. .
> Hi, does anyone happen to know how to extract a sequence of numbers
> (including the sign) between two characters? for eg. I have
>
> AAAA = -23.445 /BBBBB
> and could like to extract the number between '=' and '/'
>
> cheers,
>
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Envi display bands
Next Topic: Azimuth and Offset XYZ position correction

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

Current Time: Sun Nov 30 11:59:12 PST 2025

Total time taken to generate the page: 1.75989 seconds