Hello,
As mentioned in the title, I’m trying to use a regex with the query for a project research on the API. API documentation ref :
I used this request :
curl -H “Authorization: Bearer ${GITLAB_TOKEN}” “https://gitlab.com/api/v4/projects/project_id/search?scope=blobs&search=keyword%20filename:*.tf”
With the keyword a normal word like “module” or “module*” it works well.
curl -H “Authorization: Bearer ${GITLAB_TOKEN}” “https://gitlab.com/api/v4/projects/project_id/search?scope=blobs&search=module%20filename:*.tf”
curl -H “Authorization: Bearer ${GITLAB_TOKEN}”
“https://gitlab.com/api/v4/projects/project_id/search?scope=blobs&search=module*%20filename:*.tf”
With the keyword with a regex, even with a basic like “module*vpc”, it doesn’t work.
curl -H “Authorization: Bearer ${GITLAB_TOKEN}” “https://gitlab.com/api/v4/projects/project_id/search?scope=blobs&search=module*vpc%20filename:*.tf”
Is it possible to use a regex for the keyword? If yes how?
Thanks in advance for your help