Version 1 (modified by 15 years ago) (diff) | ,
---|
Turn anything matching a certain regex into a link
Description
A disadvantage of using InterWiki to link to external pages is that the user has to put a prefix before the link, for example MeatBall:InterMapTxt.
In some cases, the actual text to be linked is distinctive enough to be turned into a link without many false positives. For example, TOPdesk service management software uses identifiers like '0811 123' for incidents. When text of this form occurs, it could be automatically rendered into a links to the relevant TOPdesk page.
The intention of this Trac plugin is to allow these kinds of links to be made with a minimum of configuration, based on a regex that matches the external identifiers.
Bugs/Feature Requests
Existing bugs and feature requests for RegexLinkPlugin are here.
If you have any issues, create a new ticket.
Download
Download the zipped source from [download:regexlinkplugin here].
Source
You can check out RegexLinkPlugin from here using Subversion, or browse the source with Trac.
Example
Anythin matching the regex: /\b(?P<topdeskyymm>\d\d(?:0[1-9]|1[0-2])) (?P<topdeskid>\d{3})\b/ should link to a TOPdesk search url, using the named capture groups
Recent Changes
Author/Contributors
Author: ComaVN?
Contributors: