Michael Snoyman skribis 2006-08-31 15:13 (-0700): > > :g > 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.
It is indeed a modifier on the *match*, or the *substitution*. Just not on the *regex*. What you pass to a .subst method is a regex, not a match. The difference is that matches and substitutions are actions, while a regex is an object, i.e. data. Juerd -- http://convolution.nl/maak_juerd_blij.html http://convolution.nl/make_juerd_happy.html http://convolution.nl/gajigu_juerd_n.html