Changes between Version 3 and Version 4 of RegexLinkPlugin
- Timestamp:
- Nov 22, 2008, 3:45:53 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RegexLinkPlugin
v3 v4 8 8 9 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 == Known issues == 12 13 * 10 14 11 15 == Bugs/Feature Requests == … … 27 31 == Example == 28 32 29 Anythin matching the regex: 33 in trac.ini: 34 {{{ 35 [regexlink] 36 regex1 = \b(?P<topdeskyymm>\d\d(?:0[1-9]|1[0-2])) (?P<topdesknr>\d{3})\b 37 url1 = http://topdesk/?query=\g<topdeskyymm>%20\g<topdesknr> 38 }}} 39 This means anything matching the regex: 30 40 {{{ 31 41 /\b(?P<topdeskyymm>\d\d(?:0[1-9]|1[0-2])) (?P<topdeskid>\d{3})\b/ 32 42 }}} 33 should link to a TOPdesk search url, using the named capture groups 43 links to a TOPdesk search url, using the named capture groups 44 45 (the topdesk url is not correct, this is an example only) 34 46 35 47 == Recent Changes ==