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

Home » Public Forums » archive » checking a special character in a single string
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
checking a special character in a single string [message #93166] Thu, 05 May 2016 07:28 Go to previous message
Sapna Mishra is currently offline  Sapna Mishra
Messages: 66
Registered: December 2015
Member
Hello all,

I have a string say:
obj='J165248.4+363212.5'

I want to know the place where my this + sign has come say here at 10th place .

I did:
n=where(strmatch(obj,'+*',/FOLD_CASE) EQ 1)

but it is simply giving me n=1.

can any one tell how to proceed ?

Also if i want to remove all the numbers after '.' (decimal) how to do?
with strjoin+strsplit it is simply removing decimal sign and clubbing all numbers together. I don't want numbers after decimal how to do???
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Visualize a Radar image with ENVI
Next Topic: Tool for converting FK4/FK5

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

Current Time: Wed Oct 08 13:54:23 PDT 2025

Total time taken to generate the page: 0.00399 seconds