I try to use binary operator to use regexpression power,
[[ wwwebhost@all =~ "^.+@.+$" ]]
do not work in bash 4.2 and works in bash 3.2
but this works in bash 4.2(drop the double quote):
[[ wwwebhost@all =~ ^.+@.+$ ]]
can anyone explain this ?