Parameters: Subscript Flags
$name[(X)expr,(Y)expr2]
- w splits by words
- s splits on specified characters
- f splits on a per-line basis
- r treats expr as a pattern; returns first item matching expr
- i returns index of first match
- R and I just like r and i, but return last match
- n used with r, R, i, or I. Returns nth match.