I am using Xporter for jira docx template have a custom Text Field (multi-line) and i am looking for a string in it which starts with "DOC" and ends with "SRD" and was successful returning it via this code:
%{var match = '${Related Documents}'.match(/DOC-[^\n\r]*_SRD/); match ? match[0] : ''} |
However i am unable to find a solution to display the remaining text without the SRD string.
So in my example the ${Related Documents} value is
DOC123 Bla Bla Bla SRD
More Text
Some Extra Text
What i want to be able to print on my doc is:
More Text
Some Extra Text
Thanks in advance for your help