...
Here is the resulting comment in JIRA using our example email:
In order for the regexp to function correctly we need to ensure that it is expecting these asterisks by adding it to our regexp. The complication here is that the asterisk is already being used in regexp syntax as a special character, to match 0 or more of the preceding regexp token. Therefore, we need to escape the character. This is done by using the backslash character "\" before the asterisk:
No Format |
---|
\n\*From:\*.*\n\*Sent:\*.*\n\*To:\*.*\n\*Subject:\*.*\n |
With this regexp being used instead of the previous one, we now get the following result in our issue:
Info |
---|
The above solution can be applied for any wiki syntax that may be there, so long as the special characters that the syntax uses are appropriately escaped in your regexp. |
...
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...