Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (?P<escape>!)? # Match a ! escape for later removal
- (?:
- (?:
- \#(?P<ticket>\d+) # Match #43
- | \[(?P<changeset>\d+)\] # Match [1652]
- | \{(?P<report>\d+)\} # Match {4}
- | \br(?P<rchangeset>\d+)\b # Match r123
- | \[(?P<log>\d+:\d+)\] # Match [1:3]
- | \br(?P<rlog>\d+:\d+)\b # Match r1:3
- | \blog:(?P<flog>[^\s<>]*[a-zA-Z0-9=]) # Match log:trunk#1:3
- | \bticket:(?P<fticket>[^\s<>]*[a-zA-Z0-9=]) # Match ticket:43
- | \bchangeset:(?P<fchangeset>[^\s<>]*[a-zA-Z0-9=]) # Match changeset:1652
- | \breport:(?P<freport>[^\s<>]*[a-zA-Z0-9=]) # Match report:4
- | \bmilestone:(?P<fmilestone>[^\s<>]*[a-zA-Z0-9=]) # Match milestone:1.0
- | \bwiki:(?P<fwiki>[^\s<>]*[a-zA-Z0-9=]) # Match wiki:foo
- | \bsource:(?P<fsource>[^\s<>]*[a-zA-Z0-9=]) # Match source:trunk/COPYING
- |
- \[
- (?: # Match [foo bar] links
- log:(?P<llog>[^\s]*[a-zA-Z0-9=])
- | ticket:(?P<lticket>[^\s]*[a-zA-Z0-9=])
- | changeset:(?P<lchangeset>[^\s]*[a-zA-Z0-9=])
- | report:(?P<lreport>[^\s]*[a-zA-Z0-9=])
- | milestone:(?P<lmilestone>[^\s]*[a-zA-Z0-9=])
- | wiki:(?P<lwiki>[^\s]*[a-zA-Z0-9=])
- | source:(?P<lsource>[^\s]*[a-zA-Z0-9=])
- )
- \s
- (?P<link>[^]\n\r]*)
- \]
- )
Add Comment
Please, Sign In to add comment