[regex-coach] Regex Coach/CL-PPCRE question

Edi Weitz edi at agharta.de
Thu Jun 25 19:36:13 UTC 2009


[Cc to mailing list.]

Thanks for the report, this definitely looks like a bug.  I'll see to
have this fixed in the next release.

Cheers,
Edi.


On Wed, Jun 24, 2009 at 10:45 PM, Dan Moniz<dnm at pobox.com> wrote:
> Hi there,
>
> I'm using Regex Coach 0.9.2 (built with CL-PPCRE 1.3.2) and noticed
> some unexpected behavior when using the \b token. It seems to be
> working fine, but the Info tab displays "the selection is NIL" for the
> token, rather than the expected word boundary explanation. It *does*
> seem to get \B (the negation of \b) right: "the selection is a space
> between two characters which is not a word boundary".
>
> I initially discovered this while trying to troubleshoot and test a
> regex from another system/product (unrelated, and at present I'm not
> certain what regex engine it uses, though I'm assuming PCRE or POSIX
> with GNU extensions):
>
> regex: type\b\w*?\btext\b\w*?\bjavascript
>
> using Regex Coach's Info and Tree tabs to "debug" the expression and
> why it wasn't seeming to match a string I though it should. Initially
> I thought \b might be unsupported, but it does seem to work in a
> simpler test case:
>
> regex: \bis\b
> string: This island is beautiful
>
> The CL-PPCRE documentation confirmed that both \b and \B were
> supported as well. Nonetheless, the NIL replacement in the Info tab
> was odd.
>
> FWIW, I'm running on Windows Vista Ultimate with SP1 installed.
>
> Hope this helps. Thanks for making Regex Coach, and thanks for making
> it available.
>
>
> --
> Dan Moniz <dnm at pobox.com> [http://pobox.com/~dnm/]
>
>




More information about the regex-coach mailing list