Re: bug with special bracket expressions in regular expressions

2015-06-12 Thread Andriy Gapon
On 02/09/2013 19:45, Andriy Gapon wrote: > It seems that the code works like this: > - first it matches "cd0 " and "removes" it > - then it passes "cd1 xx" for matching with a flag that tells that this is not > a real start of the string > - thus the matching code > o knows that this is not a re

Re: bug with special bracket expressions in regular expressions

2013-10-01 Thread Chris Rees
On 02/09/2013 16:09, Damian Weber wrote: On Mon, 2 Sep 2013, Andriy Gapon wrote: re_format(7) says: There are two special cases? of bracket expressions: the bracket expres? sions ?[[:<:]]? and ?[[:>:]]? match the null string at the beginning and end of a word respectively. A

Re: bug with special bracket expressions in regular expressions

2013-09-02 Thread Kimmo Paasiala
On Mon, Sep 2, 2013 at 7:45 PM, Andriy Gapon wrote: > on 02/09/2013 17:54 Andriy Gapon said the following: >> >> re_format(7) says: >> There are two special cases‡ of bracket expressions: the bracket expres‐ >> sions ‘[[:<:]]’ and ‘[[:>:]]’ match the null string at the beginning and >>

Re: bug with special bracket expressions in regular expressions

2013-09-02 Thread Andriy Gapon
on 02/09/2013 17:54 Andriy Gapon said the following: > > re_format(7) says: > There are two special cases‡ of bracket expressions: the bracket expres‐ > sions ‘[[:<:]]’ and ‘[[:>:]]’ match the null string at the beginning and > end of a word respectively. A word is defined as a seq

Re: bug with special bracket expressions in regular expressions

2013-09-02 Thread Damian Weber
On Mon, 2 Sep 2013, Andriy Gapon wrote: > re_format(7) says: > There are two special cases? of bracket expressions: the bracket expres? > sions ?[[:<:]]? and ?[[:>:]]? match the null string at the beginning and > end of a word respectively. A word is defined as a sequence of word

bug with special bracket expressions in regular expressions

2013-09-02 Thread Andriy Gapon
re_format(7) says: There are two special cases‡ of bracket expressions: the bracket expres‐ sions ‘[[:<:]]’ and ‘[[:>:]]’ match the null string at the beginning and end of a word respectively. A word is defined as a sequence of word characters which is neither preceded nor fol