Hi there, I've been trying to get our email template (leveraging JIRA SD's new Project Automation features) to pick up images and (eventually) other unparsed content as well.
Here are some of the variations of the regex I have tried:
.replaceAll("!(.+?\.\w{3,4})\|width=(\d+),height=(\d+)!/gi", "<img src='$1' width='$2',height='$3'")
.replaceAll("/!(.+?\.\w{3,4})\|width=(\d+),height=(\d+)!/gi", "<img src='$1' width='$2',height='$3'")
.replaceAll("!(.+?\.\w{3,4})\|width=(\d+),height=(\d+)!/gi", "<img src='\1' width='\2',height='\3'")and several other forms of it.
When I plug in the values on regex101.com, it finds the match no problem.
https://regex101.com/r/LNcuqg/1

Can anyone see what i'm doing wrong? I would love to be able to parse the images and translate them into html using regex so we can have inline images for our ticket reply emails! Happy to provide any additional info needed.
I feel like this would probably help others too. I can't find anything online that is JIRA Service Desk specific. (Yes, I've read the documentation)
https://support.atlassian.com/jira-software-cloud/docs/smart-values-text-fields/#Smartvalues-textfields-replaceAll(Stringregex,Stringreplacement)
https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#replaceAll%28java.lang.String,%20java.lang.String%29