Splits astring into an array of substrings called tokens.
pattern A scalar string specifying a regular expression. This regular expression is the delimiter used to determine where to split the string.
NOTE: STRSPLIT uses regular expressions, not wildcard characters, for pattern matching. To use STRSPLIT, it is crucial that you understand regular expressions. For a detailed discussion of regular expressions, see the chapter Working with Text in the PV-WAVE Programmer's Guide.
PATH = '/bin:/usr/bin:/usr/local/bin:' +$ '/etc:/usr/ucb/bin:/usr/sbin' dirs = STRSPLIT(path, ':') PRINT, dirs, Format='(A)'
/bin
/usr/bin
/usr/local/bin
/etc
/usr/ucb/bin
/usr/sbin