[lang-ref] ( regexp_is_match ) ( bash )
@test "regexp is match" {
# [[ target =~ pattern ]]
# this matches
[[ "abcdef abcdef abcdef" =~ d.f ]]
[[ "abcdef abcdef abcdef" =~ ^ab ]]
[[ "abcdef abcdef abcdef" =~ ef$ ]]
# don't quote
[[ ! "abcdef abcdef abcdef" =~ 'd.f' ]]
}