<br><br><div class="gmail_quote">On Fri, May 1, 2009 at 9:29 PM, Andrew Rodland <span dir="ltr"><<a href="mailto:arodland@comcast.net">arodland@comcast.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Friday 01 May 2009 08:56:21 pm Jay Strauss wrote:<br>
> On Fri, May 1, 2009 at 6:17 PM, Joshua McAdams <<a href="mailto:joshua.mcadams@gmail.com">joshua.mcadams@gmail.com</a>><br>
wrote:<br>
> > Could you get by with s/\bEft\b/EFT/<br>
><br>
> Would you please explain to the slow ones in the class (me) why/how<br>
> the solution is not not equal to the problem?<br>
<br>
</div>\b matches the boundary between a \w word char and a \W nonword char (or<br>
start/end of string). So that pattern would match if "Eft" is bounded by any<br>
non-word chars, for instance "Newt-Eft-Salamander" will become "Newt-EFT-<br>
Salamander" under that substitution because "-" is a nonword char, so \b will<br>
match between "-" and "E" and between "t" and "-".<br>
<font color="#888888"><br>
Andrew<br>
</font><div><div></div><div class="h5"><br>
</div></div></blockquote><div><br>Thanks Andrew, I think that is the winner. I will probably run a before and after on the data to see if there are any surprises.<br><br>-- <br>Michael Potter<br></div></div><br>