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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.