Looking for a guide to optimising regexp matches in bash.I have a script that loops over a very long list of URLs looking for patterns. Currently it looks a little like the fragment below. Is there a guide to optimising these kinds of matches?if [[ ${url} == */oai/request ]]then    echo first optionelif [[ ${url} =~ .*/index.php/[^/]+/journal=.* ]]then    echo second optionelif [[ ${url} =~ .*/[Ee][Tt][dD]-[Dd][Bb]/.* ]]then    echo third optionelif [[ ${url} =~ .*/handle/[0-9]+/[0-9].* || ${url} =~ .*/browse.* ]]then    echo fourth optionelse    echo no-match optionfi
optimisation of bash globs
bash;shell;wildcards;optimization