Regex for 'rec-01-' to select jobs in Jenkins view

Viewed 130

I am setting up a Jenkins view and want to use Regex to automatically select matched jobs. The jobs to be selected all have a prefix like 'rec-01-', 'rec-24-', 'rec-98-', etc. The only difference is the two digits.

I tried with this regex ^(rec-[0-9]+-) and many similar ones but no luck.

1 Answers

Jenkins tries to do a full match of the regular expression against the job names, so the following should work:

rec-[0-9]+-.*
Related