[opensuse] regexp -- defference between \< and \b ?



Listmates:

With regular expressions, what is the difference between \< and \b ? The man page says:

"The symbols \< and \> respectively match the empty string at the beginning and end of a word. The symbol \b matches the empty string at the edge of a word..."

What is the difference between being at the "beginning or end" of a word or at the "edge" of a word? Presuming that "The (word) symbol \w is a synonym for [[:alnum:]]"

The concept eludes me.....

--
David C. Rankin, J.D., P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: [opensuse] regexp -- defference between < and  ?
    ... Randall R Schulz wrote: ... With regular expressions, what is the difference between \< and \b? ... There are many grammars for notating them and many varieties of fundamental matching constructs. ... The symbols \respectively match the empty string at the beginning and end of a word. ...
    (SuSE)
  • Re: regular expressions, order of evaluation
    ... inside the first parenthesis, \2 likewise for the 2nd parenthesis. ... most flavours of regular expressions have the ... \1 returns the whole target string, \2 returns the empty string ... Is that statement correct at all, i.e. do indeed most flavours have ...
    (sci.math)
  • Re: Find instance in a string
    ... If there is no 4 character number in the input, an empty string is returned ... The following sites provide a wealth of information on regular expressions. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Simple Regex issue
    ... > I'm not an expert on regular expressions, but I thought I knew how to ... > expressions match. ... is before or after the | character.) ... matching the empty string before the first | in the first Regex. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: problems mime::lite
    ... If you want to test for undef, ... If you want to test for empty string then: ... Fort Worth, Texas ...
    (comp.lang.perl.misc)