in reply to keeping one pattern but removing all else from a string
-- stefp -- check out TeXmacs wiki