| 1 | = Turn anything matching a certain regex into a link = |
| 2 | |
| 3 | == Description == |
| 4 | |
| 5 | 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. |
| 6 | |
| 7 | 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. |
| 8 | |
| 9 | 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. |
| 10 | |
| 11 | == Bugs/Feature Requests == |
| 12 | |
| 13 | Existing bugs and feature requests for RegexLinkPlugin are |
| 14 | [report:9?COMPONENT=RegexLinkPlugin here]. |
| 15 | |
| 16 | If you have any issues, create a |
| 17 | [http://trac-hacks.org/newticket?component=RegexLinkPlugin&owner=ComaVN new ticket]. |
| 18 | |
| 19 | == Download == |
| 20 | |
| 21 | Download the zipped source from [download:regexlinkplugin here]. |
| 22 | |
| 23 | == Source == |
| 24 | |
| 25 | You can check out RegexLinkPlugin from [http://trac-hacks.org/svn/regexlinkplugin here] using Subversion, or [source:regexlinkplugin browse the source] with Trac. |
| 26 | |
| 27 | == Example == |
| 28 | |
| 29 | Anythin matching the regex: |
| 30 | /\b(?P<topdeskyymm>\d\d(?:0[1-9]|1[0-2])) (?P<topdeskid>\d{3})\b/ |
| 31 | should link to a TOPdesk search url, using the named capture groups |
| 32 | |
| 33 | == Recent Changes == |
| 34 | |
| 35 | [[ChangeLog(regexlinkplugin, 3)]] |
| 36 | |
| 37 | == Author/Contributors == |
| 38 | |
| 39 | '''Author:''' [wiki:ComaVN] [[BR]] |
| 40 | '''Contributors:''' |