! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Action regexp subpattern matches wrong characters
Status:
CLOSED: FIXED
Product:
Xfce4-clipman-plugin
Component:
General

Comments

Description Adrien CLERC 2009-09-06 10:43:00 CEST
Hi,

I've just installed xfce4-clipman and xfce4-clipman-plugin from debian unstable repository. I've decided to start using action, especially the built-in "bug".
I've changed the pattern to "#([0-9]+)".

It does match the following snippets :
#519165
#519165.
#519165 and some example values

Regarding bug 5736, this is ok, but then, I got the following action : "exo-open http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=\1"

The \1 should be the numerical value inside the selection. By now, the whole value after the "#" is appended to the URL. For example, Clipman launchs "exo-open http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=519165 and some example values" (and I got 5 new tabs in Firefox ;))

This make me think that the regexp engine made a mistake somewhere.
Comment 1 Mike Massonnet editbugs 2009-09-17 19:36:58 CEST
I can reproduce this pattern with the bug too. It must be a bug in gtk+ or libpcre.
Comment 2 Mike Massonnet editbugs 2009-12-12 20:17:45 CET
The regex compilation flag ANCHORED doesn't work as expected with the replace function. ANCHORED is supposed to enclose the pattern with the special characters ^...$. Removing this compilation flag and putting the anchors in the pattern works fine in the replace function.

I will file a bug on gnome.org.
Comment 3 Mike Massonnet editbugs 2009-12-13 10:56:43 CET
I was wrong about ANCHORED, it doesn't constraint the string to be matched at the last matching point. I will have to modify the pattern manually and append a $.
Comment 4 Mike Massonnet editbugs 2009-12-13 11:18:07 CET
Pushed into git.

Bug #5737

Reported by:
Adrien CLERC
Reported on: 2009-09-06
Last modified on: 2012-04-09

People

Assignee:
Mike Massonnet
CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information