I made this regex but it is not working.
I got this example string: ('/test/test/test/test-Test/TEST/test.sql'),
my bash code:
if [[ ${arrayQuery[$i]} =~ ([a-z0-9]+)\/([a-z0-9]+)\/([a-z0-9]+)\/([a-z0-9-]+)\/([a-z0-9]+)\/([a-z0-9]+).([a-z0-9]+) ]]; then
queryName=$1
echo "test $queryName"
fi
it is not priting anything can anyone explain my why this is not working?
i tried my regex on regex101.com and the regex did work on this website.