Regex Issue Tracker URL Builder¶
This will use regular expressions to convert the comment into an url.
Version¶
Available from version 1.0
Examples¶
1<issueUrlBuilder type="regexIssueTracker">
2 <find>^.*(CCNET.?\d*).*$</find>
3 <replace>http://jira.public.thoughtworks.org/browse/$1</replace>
4</issueUrlBuilder>
Configuration Elements¶
Element | Description | Type | Required | Default | Version |
find | The string to find. | String | Yes | n/a | 1.0 |
replace | The replacement string. | String | Yes | n/a | 1.0 |
Notes¶
Find Statement¶
For people not familier with Regex, here are some examples:
* Assert position at the beginning of a line (at beginning of the string or after a line break character): «^» * Match any single character that is not a line break character: «.» * Between zero and unlimited times, as many times as possible, giving back as needed (greedy): «\*» * Match the regular expression below and capture its match into backreference number 1: «(CCNET.?\d)» * Match the characters "CCNET" literally: «CCNET» * Between zero and one times, as many times as possible, giving back as needed (greedy): «?» * Match a single digit (i.e. 0..9): «\d» * Assert position at the end of a line (at the end of the string or before a line break character): «$» * Check without case sensitivity: «(?i)»
h4. Replace Statement
To reference a backreference use « $1».
Automatically Generated¶
Documentation generated on Monday, 26 May 2014 at 7:18:02 AM