Allow variable to be set to result of search and replace
It would be useful to perform a search and replace to a variable then place the result into another variable. Also doable, but more complicated in both implementation and use, is to allow lookahead regexes.