<br><br><div class="gmail_quote">On Fri, May 1, 2009 at 9:29 PM, Andrew Rodland <span dir="ltr">&lt;<a href="mailto:arodland@comcast.net">arodland@comcast.net</a>&gt;</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>
&gt; On Fri, May 1, 2009 at 6:17 PM, Joshua McAdams &lt;<a href="mailto:joshua.mcadams@gmail.com">joshua.mcadams@gmail.com</a>&gt;<br>
wrote:<br>
&gt; &gt; Could you get by with s/\bEft\b/EFT/<br>
&gt;<br>
&gt; Would you please explain to the slow ones in the class (me) why/how<br>
&gt; 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 &quot;Eft&quot; is bounded by any<br>
non-word chars, for instance &quot;Newt-Eft-Salamander&quot; will become &quot;Newt-EFT-<br>
Salamander&quot; under that substitution because &quot;-&quot; is a nonword char, so \b will<br>
match between &quot;-&quot; and &quot;E&quot; and between &quot;t&quot; and &quot;-&quot;.<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>