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

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events