in reply to Search and replace with expansion

Many thanks, all; there's some neat ideas there. I guess I just needed a push in the right direction; I'd forgotten about the "e" modifier, for example.

I'll work something out that not only allows me to expand the terms, but also evaluate them and insert constants such as square roots and "pi" etc.

Thanks again.

-- Dave