From: doug <do...@o2...> - 2011-06-12 10:38:29
|
Bob, Thanks for the reference. Thanks also to Martin for your reference - I'm working through it and finding it very good. Doug (apologies for the top posting) On 11/06/11 17:14, Bob Melson wrote: > (I know, top posting is frowned on.) > > I come late to this discussion, but wanted to add a > recommendation to all: "Mastering Regular Expressions", > by Jeffrey Friedl, O'Reilly, 1997, is a really useful > book on the topic of regular expressions. It belongs > on every user's bookshelf. > > Bob Melson > >> On 11/06/11 00:50, Nick Hall wrote: >>> >> <snip> >>>> >>>> >>>> from Nick: >>>> >>>> <quote> >>>> :1,$s/^\([a-zA-Z]*,[a-zA-Z]*,\)/\1,,,/ >>>> or >>>> :1,$s/[a-zA-Z]*,[a-zA-Z]*,/&,,,/ >>>> >>>> <endquote> >>>> >>>> These worked fine in vim. >>>> <snip> |