2009-05-02 07:34:15 Stephen J. Turnbull napisaĆ(a): > Barry Warsaw writes: > > On May 1, 2009, at 5:55 PM, Michael Foord wrote: > > > > > P for Proposal (to replace Active Proposal)? Every active PEP is a > > > proposal... > > > > +1 > > > > Maybe even s/Active/Proposed/g ? > > Shouldn't that be > > s/Active/Proposed/<g>
No. From `info sed 'sed Programs' 'The "s" Command'`: > The `s' Command > =============== > > The syntax of the `s' (as in substitute) command is > `s/REGEXP/REPLACEMENT/FLAGS'. The `/' characters may be uniformly > replaced by any other single character within any given `s' command. > The `/' character (or whatever other character is used in its stead) > can appear in the REGEXP or REPLACEMENT only if it is preceded by a `\' > character. > ... > The `s' command can be followed by zero or more of the following > FLAGS: > > `g' > Apply the replacement to _all_ matches to the REGEXP, not just the > first. -- Arfrever Frehtes Taifersar Arahesis
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com