Bob La Quey wrote:
Hi Ralph,

Does the string 9][A occur anywhere other than embedded in the
string ^[0-9][A-Z]   ?

If the answer is no then I do believe my  simpler
%s/9\[\]A/9\[ \]A/g will work.

Did you try it?

BobLQ


Thans Bob.

But "^[0-9][A-Z]" was intended as an example (in regular expression speak) of what I was searching for. I *should* have written it as "\^[0-9][A-Z]" to indicate that the "^" is *not* a start of line. (I'm still quite the novice in regex.)

And "\^[0-9] [A-Z]" is what I wanted it replaced with. Stewart gave me what I needed.

Examples:
   ^2And ...
   ^3This ...
   ^4And ...
   ^5Before ...
   ^6Like ...
   ^7He ...
   ^8Open ...
   ^9And ...
   ^10 For ...
   ^11 Certain ...
   ^2Because ...
   ^3Open ...
   ^4Begin ...
   .
   .
   .

Needed to be:
   ^2 And ...
   ^3 This ...
   ^4 And ...
   ^5 Before ...
   ^6 Like ...
   ^7 He ...
   ^8 Open ...
   ^9 And ...
   ^10 For ...
   ^11 Certain ...
   ^2 Because ...
   ^3 Open ...
   ^4 Begin ...
   .
   .
   .


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to