Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Using regex to remove string in between & including two special characters

Ian Wozniak
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 16, 2022

Looking for a bit of guidance here on an easy way to remove string in between two specific characters as well as the special characters themselves.

 

Example:

Email: <test@testing.com|test@testing.com>

^ The above is a bit that populates the description field. I would like to remove:

|test@testing.com> as well as the leading <

I assume this will be a regex match that looks something like this:

{{issue.description.match("<[^>]*>")}}

But unsure of the following steps to properly parse and remove everything to end up with:

Email: test@testing.com

Thanks so much!

0 answers

Suggest an answer

Log in or Sign up to answer