#!/bin/bash
i="a001"
if ! [[ $i =~ "a[0-9]{3}" ]]; then
echo "success"
fi
input i="a001"
makes it success, although it does match a[0-9]{3}
pattern and if
statement should not be executed. What is going on? in my opinion it is compiler mistake. It is a part of bigger problem that I have not solved since yesterday.