> $foo.subst(:g, /bar/, "baz") > i seem to recall$foo.subst(/:g bar/, "baz") is valid syntax already.
If I'm not mistaken, the aversion to that syntax- as implied earlier in this thread- was that the :g is really a modifier on the substitution, not on the matching. (Please correct me if I'm wrong; as I look through the thread I don't actually see the message I'm thinking of.) That said, I think to a certain extend it *is* a modifier on the match. It's saying "match bar globally," and then subst says "everything that the regex matched should be replaced by baz." I think that's a pretty intuitive way of handling the problem. Michael
