27.5.8 Removing spaces from strings: an example
Suppose you need to remove spaces and apostrophes from a string value (such as a topic title), and replace each space with an underscore, sending the result to output. The following macro uses several macro expression features:
<$_repeat ($$OldString length)>\
<$$char = ($$OldString char $$_count)>\
<$_elseif ($$char is not "'"><$$char>\
> 27 Working with Mif2Go macros > 27.5 Using expressions in macros > 27.5.8 Removing spaces from strings: an example
