= 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 link 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 [report:9?COMPONENT=RegexLinkPlugin here]. If you have any issues, create a [http://trac-hacks.org/newticket?component=RegexLinkPlugin&owner=ComaVN new ticket]. == Download == Download the zipped source for version 0.2 from [http://trac-hacks.org/changeset/latest/regexlinkplugin/tags/trac0.11/0.2?old_path=/&filename=regexlinkplugin0.2_trac0.11&format=zip here], or just get the egg for Python 2.5 [export:regexlinkplugin/tags/trac0.11/0.2/dist/RegexLink-0.2-py2.5.egg here] == Source == You can check out RegexLinkPlugin from [http://trac-hacks.org/svn/regexlinkplugin/trunk here] using Subversion, or [source:regexlinkplugin browse the source] with Trac. [source:regexlinkplugin/trunk/ trunk] is where active development occurs (on trac 0.11), [source:regexlinkplugin/tags/ tags] contains released versions, and any development for other trac versions will occur in [source:regexlinkplugin/branches/ branches]. == Example == in trac.ini: {{{ [regexlink] regex1 = \b(?P\d\d(?:0[1-9]|1[0-2])) (?P\d{3})\b url1 = http://topdesk/query=\g%20\g regex2 = \bexample(?P\d+)\b url2 = http://example.org/\g }}} This means 0811 123 becomes [http://topdesk/query=0811%0123 0811 123], and example123 becomes [http://example.org/123 example123] (the topdesk url is not correct, this is an example only) == Recent Changes == [[ChangeLog(regexlinkplugin, 3)]] == Author/Contributors == '''Author:''' [wiki:ComaVN] [[BR]] '''Contributors:'''