yitzle wrote:
I'm not sure how it works, but I think <> or \<\> is a RegEx reserved
character for word matching.

That only works for other regular expression engines in programs like vi/less/grep etc.

$ echo "abcdefg cde lmncdeopq" | grep -o -e 'cde'
cde
cde
cde
$ echo "abcdefg cde lmncdeopq" | grep -o -e '\<cde\>'
cde


I seem to remember that Jeffrey Friedl's[1] book describes a way to emulate left and right word boundaries in Perl's regular expressions.

[1] http://www.oreilly.com/catalog/regex3/index.html


John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to