Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Regex Validator

Paul Krueger
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 21, 2024

I'm trying to use a validator to make sure issues with "<Update Text>" in the description can't transition. The regex I think should work is this: 

^(?:(?!<Update Text>).)*$

I've also tried this:

^(?!.*<Update Text>).*$[\s\S]*

Either way, it's not working.  

1 answer

1 accepted

1 vote
Answer accepted
Jim Knepley - ReleaseTEAM
Atlassian Partner
November 21, 2024

Hi @Paul Krueger 

Superficially, it seems you could match without the extra anchors and lookahead assertions.

<Update-Text>

I suspect that I don't completely understand what you're hoping to solve. Could you post a sample description that you believe should match?

Paul Krueger
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 21, 2024

Yes, that would match if that text were in there, but I need it to match when the text isn't there.

Jim Knepley - ReleaseTEAM
Atlassian Partner
November 21, 2024

I understand. Try this:

^((?!<Update Text>).)*$

 

Paul Krueger
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 26, 2024

That did the trick. Thank you so much!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events