jfrog-client-go
jfrog-client-go copied to clipboard
Is searching for files in Artifactory possible using a Regex?
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.
Up.
I have a same problem with params.Regexp.
Not testing in this projet. That work ?