Changes between Version 24 and Version 25 of RegexLinkPlugin


Ignore:
Timestamp:
Oct 1, 2016, 8:58:56 PM (7 years ago)
Author:
figaro
Comment:

Moved example to functional description

Legend:

Unmodified
Added
Removed
Modified
  • RegexLinkPlugin

    v24 v25  
    1010
    1111This Trac plugin allows these kinds of links to be made with a minimum of configuration, based on a regex that matches the external identifiers.
     12
     13For example, when adding the following to your `trac.ini` file:
     14{{{#!ini
     15[regexlink]
     16regex1 = \b(?P<topdeskyymm>\d\d(?:0[1-9]|1[0-2])) (?P<topdesknr>\d{3})\b
     17url1 = http://topdesk/query=\g<topdeskyymm>%20\g<topdesknr>
     18regex2 = \bexample(?P<exampleid>\d+)\b
     19url2 = http://example.org/\g<exampleid>
     20}}}
     21
     22then `0811 123` becomes [http://topdesk/query=0811%0123 0811 123], and `example123` becomes [http://example.org/123 example123].
     23
     24The topdesk url is fictitious, this is an example only.
    1225
    1326== Bugs/Feature Requests
     
    3144The [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 occurs in the [source:regexlinkplugin/branches/ branches].
    3245
    33 == Example
     46== Installation
    3447
    35 Add the following to your `trac.ini` file:
    36 {{{#!ini
    37 [regexlink]
    38 regex1 = \b(?P<topdeskyymm>\d\d(?:0[1-9]|1[0-2])) (?P<topdesknr>\d{3})\b
    39 url1 = http://topdesk/query=\g<topdeskyymm>%20\g<topdesknr>
    40 regex2 = \bexample(?P<exampleid>\d+)\b
    41 url2 = http://example.org/\g<exampleid>
    42 }}}
    43 
    44 This means `0811 123` becomes [http://topdesk/query=0811%0123 0811 123], and `example123` becomes [http://example.org/123 example123].
    45 
    46 The topdesk url is fictitious, this is an example only.
     48General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page.
    4749
    4850== Recent Changes