10.3.5 WC_WHERE


next up previous contents
Next: 10.3.6 REBIN [IDL] Up: 10.3 Miscellaneous Previous: 10.3.4 STR_REPLACE

10.3.5 WC_WHERE

The WC_WHERE function will search a string array for the occurrence of a substring and return the indices of the elements where a match is found. The substring may contain one or more wild cards. An optional third parameter contains a count of the elements returned. The case_ignore switch may be used to force the search to be insensitive to the case of the characters.
IDL> ss=wc_where(strarray, pattern)
 
IDL> ss=wc_where(filearray, 'sfr9310*', filecount)

IDL> ss=wc_where(strarray, '*time*',/case_ignore)


ydac@mssly1.mssl.ucl.ac.uk