Stephen Turner wrote:
> 
> Some Perl features I noticed while playing this game. Maybe someone would
> be kind enough to explain them.
> 
> 4) I had to waste a character by using /..(?{CODE})\b/ instead of
> /..(?{CODE}$/. Actually, I do understand this. The regex optimiser is too
> smart, and only looks at the end of the string when it sees the $, but
> thankfully it's not smart enough only to look near word boundaries even when
> there's a \b in there.

Check out Eugene's:  /..(?{CODE})^/

-- 
Rick Klement

Reply via email to