Package: visual-regexp
Version: 3.1-3
Severity: normal

Hello,

this doesn't kill me but it's confusing:

As "pattern", enter "(foo)(bar)?(baz)" (without quotes).
As "sample", enter "foobaz" (ditto).
Hit "Go".

This is a match although "bar" is matched zero times. But the coloring
is not as I'd expect to see. The three groups in the pattern are
colored in the first three match colors, blue, green and magenta.

Expected coloring for the sample: According to the respective groups,
i.e. "foo" in blue, "baz" in magenta.

Actual coloring: "baz" is green, i.e. the second match color.

FWIW, using "*" instead of "?" in the pattern yields the same result.

Regards,
    Christoph

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.36 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages visual-regexp depends on:
ii  tcl-vfs [tclvfs]  1.3-20080503-3
ii  tk8.5             8.5.11-2

visual-regexp recommends no packages.

visual-regexp suggests no packages.

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to