From owner-freebsd-hackers Sun Apr 7 20:48: 1 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from bast.unixathome.org (bast.unixathome.org [216.187.105.150]) by hub.freebsd.org (Postfix) with ESMTP id 1BF1137B416 for ; Sun, 7 Apr 2002 20:47:58 -0700 (PDT) Received: from laptop.unixathome.org (xeon.unixathome.org [192.168.0.18]) by bast.unixathome.org (Postfix) with ESMTP id 7F52E3F28 for ; Sun, 7 Apr 2002 23:48:24 -0400 (EDT) Date: Sun, 7 Apr 2002 22:48:00 -0400 (EDT) From: Dan Langille To: hackers@freebsd.org Subject: php regex needed for PR numbers Message-ID: <20020407223844.U183-100000@laptop.unixathome.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi folks, If you don't know it already, the new version of Freshports is in beta testing at . One of the remaining items I'm looking for help with is the creation of hyperlinks from the log messages to the PR database. I'm hoping that someone can provide a bit of code I can use in PHP to convert lines like this: PR: 12345 PR: ports/1234 PR: 1234,5678 to lines which contain hyperlinks to the actual PR. The HREF isn't difficult, but I'm finding trouble with getting it working and working correctly. Our first attempts can be http://test.freshports.org/phorum/lists.php?f=1 under the thread titled "more PHP regex help wanted please". thanks. -- Dan Langille novice in training - http://www.freebsddiary.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message