if [[ $1 =~ ^\'*\"*[\d+\w+]+\'*\"*$ ]]
then
echo true
else
echo error
exit 1
fi
This regex seems to be correct (verified with https://regexr.com, and other regex sites), however, the script will evaluate to false. Any idea why?
For this argument, I am expecting a line such as:
Will0w
To be matched, however, no luck.
Any help would be appreciated,
Thanks
\dand\ware not supported.