10.3.4 STR_REPLACE


next up previous contents
Next: 10.3.5 WC_WHERE Up: 10.3 Miscellaneous Previous: 10.3.3 ARR2STR

10.3.4 STR_REPLACE

Given a string (or an array of strings) it is possible to replace all occurrences of a given string using STR_REPLACE. In the example below, all occurrences of ``sfr'' are replaced with ``spr''.
IDL> out = str_replace(in, 'sfr', 'spr')
 


ydac@mssly1.mssl.ucl.ac.uk