I'm trying to create JIRA issues based on an incoming email using the JETI plugin. I've created field initialization rules to initialize the JIRA fields. The email contains XML-style data, so I can use this kind of regular expression "<tag>(.*)</tag>" which extracts the data and fills the JIRA field. However, this works only if the data does not contains a line break, because the "." matches everything but newline. How can I specify a regular expression that can be used for multiline text aswell?
I haven't used JETI, but assuming that it uses the Java Pattern class, you should be able to use the embedded flag (?s) to match new lines:
<tag>(?s)(.*)(?-s)</tag>
This is equivalent to enabling the DOTALL flag.
This works perfectly well! Thanks a lot!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.