The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How does a regex works in Scriptrunner

Margaria Vince
January 17, 2023

Hello, I am currently working on a pre-hook for tags on scriptrunner that will force users to freeze there dependencies. I have a problem about that.

I did a regex that checks this situation :  .*requires\(\"[^\d|_|\-](\S)+/\[(\d)(\.\d)*\]
I did this regex using regex101.com based on a Java 8 flavor. The problem I have is that it seems that either scriptrunner does not understand this or it is that I don't know how to test my tags.

Is there someone that can help me please ?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Jeroen Poismans
Community Champion
February 6, 2023

Hi there,

Do you have an Adaptavist account? They have a Script library where I found this script to user regex to check mail. With some change you should be able to get this to work on your regex:

https://library.adaptavist.com/entity/use-regex-to-find-emails-address

 

Regads,

Jeroen

TAGS
AUG Leaders

Atlassian Community Events