| 12 | |
| 13 | For example, when adding the following to your `trac.ini` file: |
| 14 | {{{#!ini |
| 15 | [regexlink] |
| 16 | regex1 = \b(?P<topdeskyymm>\d\d(?:0[1-9]|1[0-2])) (?P<topdesknr>\d{3})\b |
| 17 | url1 = http://topdesk/query=\g<topdeskyymm>%20\g<topdesknr> |
| 18 | regex2 = \bexample(?P<exampleid>\d+)\b |
| 19 | url2 = http://example.org/\g<exampleid> |
| 20 | }}} |
| 21 | |
| 22 | then `0811 123` becomes [http://topdesk/query=0811%0123 0811 123], and `example123` becomes [http://example.org/123 example123]. |
| 23 | |
| 24 | The topdesk url is fictitious, this is an example only. |
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. |
| 48 | General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. |