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

Home » Public Forums » archive » String Spliting
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
String Spliting [message #49362] Wed, 19 July 2006 07:49
ChristopherFlorio is currently offline  ChristopherFlorio
Messages: 23
Registered: April 2006
Junior Member
I am having a problem with the STRSPLIT function.
I am using it to extract the file extension from a string where it
might not be at the end.
However in the process I am also eliminating addition elements, not
found in the extension.
For example

file='Image.img'
filter='*.img'

file=STRJOIN(STRSPLIT(file,filter,/EXTRACT))

file='Iae'

desired output:
file='Image'

Is there a way, with the same input as above, not to extract individual
parts of the name found in the filter/pattern?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Surface Plots
Next Topic: mpfitexpr using functargs

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

Current Time: Fri Oct 10 16:35:39 PDT 2025

Total time taken to generate the page: 0.40274 seconds