sandr - regular expression search and replace


<sandr $expr $replace $data>

The sandr function replaces in $data every occurrence of a $expr REX expression with the corresponding string from $replace. It returns the $data list with any replacements.

If $replace has fewer values than $expr, it is "padded" with empty replacement strings for the extra search values.

sandr returns the $data list with any replacements made.

Copyright © Thunderstone Software     Last updated: Jul 17 2021
Copyright © 2021 Thunderstone Software LLC. All rights reserved.