Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Here is the resulting comment in JIRA using our example email:

 Image Added

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:

 

Image Added

 

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)
showLabelsfalse
max5
spacesJEMHC
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("body","comment","regex","regexp","wiki","delimiter","markupjemh") and type = "page" and space = "JEMHC"
labelsregex regexp comment body wiki markup

...