MLUG: Re: [MLUG] Vi Regex problem
Re: [MLUG] Vi Regex problem
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Thu, 4 Apr 2002, Scott Hussey wrote:

> Try somethinglike s/,([A-Z])/,"$1/g
>
> The parantheses (sp?) are a grouping operator and tell vi
> to assign whatever matches the pattern inside them to the next
> group variable ($1, $2, $3, ...) The $1 of course then references
> the first grouping from the matching part of your re.


Do you know if this can also be done somehow in sed?  I thought there was
a correspondence between vi and sed on this sort of thing but I couldn't
get sed to do this.

Mike

--
To unsubscribe, go to http://mlug.missouri.edu/members/edit.php

Archives are available at http://mlug.missouri.edu/list-archives/