On Sat, 2016-08-13 at 17:48 -0700, Rich Shepard wrote:
> On Sat, 13 Aug 2016, David Fleck wrote:
> 
> > > /s/\([A-Z]\)\([A-Z]+\)/[A-Z]\L\2/g
> 
> > Are we the only people here today?  Anyway, this works for me:
> 
> David,
> 
>    Apparently so. :-)
> 
> > s/\([A-Z]\)\([A-Z]*\)/\1\L\2/g
> > Your line makes sense to me, but it doesn't work for me either. I'm
> > not
> > sure why.
> 
>    I think it's specifying [A-Z] in the replacement rather than \1. I
> totally
> missed seeing that.
In my experience, some sed versions/implementations also do not
recognize + (as one or more). In that case, the equivalent workaround
would be [A-Z][A-Z]*

> 
> Thank very much,
> 
> Rich
> _______________________________________________
> PLUG mailing list
> [email protected]
> http://lists.pdxlinux.org/mailman/listinfo/plug
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to