...
Body Delimiters and Cleanups - This is to remove content from the email body.
Server/Dc page: Use Project Mapping Cleanup and Body Delimiters
Cloud page: Applying Body Regexes
Subject IssueKey (comment) Regexps - Check if a IssueKey is present in the subject of the email when commenting.
Server/Dc page: Use Subject Issue Key Matching
Cloud page, see the Issue key in subject section: https://thepluginpeople.atlassian.net/wiki/spaces/JEMHC/pages/72908873/Understand+how+Issue+association+works#Issue-key-in-subject
Regexp Field Processor - Retrieve values from email content to be added as a value for a Custom Field.
Server/Dc page: Use Regexp Field Processor
Cloud page: Use Regexp Field Processor
This guide cover how to create simple pattern matches and how to use special characters within Regex.
...
Regex uses special characters to perform certain functions. Some Special characters that will help with creating expressions are:
Special character | Function |
---|---|
. | This will match any single character other than a newline |
* | This matches zero or more consecutive characters. For example (/ba*) will match “ba” and “baaa” as the expression will match more than one “a” characters. |
\ | Escape following special character. This will allow special characters to be matched within the email. For example if you are looking for “[abc]” the regex will have to be \[abc\] as this will mean that the regex will also look for “[ ]” as a character. |
( ) | Used to define a capture group within a regex. |
[ ] | This is used to define which Character sets you want to capture. For example ([a-z]) will capture all characters that are a lower case alphabetical character. |
{ } | Indicates how many characters the value must have. This can be an exact number or between a certain range. |
+ | Matches one or more consecutive characters. |
| | Matches either what is before or after the | allowing for a or condition |