[Bug web/52228] Bugzilla: Missing link for "PR...."
LpSolit at netscape dot net
gcc-bugzilla@gcc.gnu.org
Mon Feb 13 16:24:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52228
--- Comment #9 from Frédéric Buclin <LpSolit at netscape dot net> 2012-02-13 16:24:20 UTC ---
(In reply to comment #8)
> Regarding comment 0, how about such a pattern:
>
> qr/(?<!\D/)\b(pr(?:\s*|\s+\S+\/)(\d+)(?:\s+comment\s+(\d+))?)/i
This is just a hack. Not a good idea.
> Best would be a pattern, which only prohibits "http(s):"[nonwhitespace]/PR".
Of course, but negative look-behind assertions only accept fixed-width strings.
Else I would simply look for :// in the string. I have a workaround which I'm
discussing upstream.
More information about the Gcc-bugs
mailing list