SUBST
Syntax SUBST what with wordorlist
 
Explanation

SUBST performs a replacement of text in its arguments. It replaces all occurrences of its first input with its second input inside the word or list given as its third input. If the third input is a list, the replacement is recursive and affects all lists inside the list. If the list element to be replaced is quoted, the replaced text remains quoted.
 
 
 

Examples SUBST "? "X "A?B?C
Result: AXBXC
SUBST "? "MIKE [HELLO ? [HOW ARE YOU ?]]
Result: [HELLO MIKE [HOW ARE YOU MIKE]]
FIRST SUBST "? "MIKE [? UNQUOTED]
Result: MIKE
FIRST SUBST "? "MIKE ["? QUOTED]
Result: "MIKE

TopIndex