jfrog-client-go icon indicating copy to clipboard operation
jfrog-client-go copied to clipboard

Is searching for files in Artifactory possible using a Regex?

Open eamonnotoole opened this issue 4 years ago • 1 comments

Hello,

I'm trying to use a regex when searching for files in Artifactory, but not getting any results. I've used:

searchParams := services.NewSearchParams() searchParams.Regex = true searchParams.Pattern = "greenlake-centos-7-7-([0-9]*).ova" resultitems, err := rtManager.SearchFiles(searchParams)

To match files such as:

greenlake-centos-7-7-154678.ova

But I don't get any matches. What have I done wrong? Are regexes supported for SearchFiles().

Thanks.

-Eamonn.

eamonnotoole avatar Jun 22 '20 13:06 eamonnotoole

Up.

I have a same problem with params.Regexp.

Not testing in this projet. That work ?

hypolas avatar Sep 13 '24 07:09 hypolas