FYI Dyalog has operators ⎕S (search) and ⎕R (replace) which are implemented with PCRE:
('[Aa]..'⎕S'&')'Dyalog APL' ┌───┬───┐ │alo│APL│ └───┴───┘ ('red' 'green'⎕R'green' 'blue')'red orange yellow green blue' green orange yellow blue blue http://help.dyalog.com/16.0/Content/Language/System%20Functions/r.htm Jay.