My goal is to validate regex for wildcard in domain addresses;
I've tried to do it through java.util.regex.Pattern, but some cases confuse me. Can someone explain, why it considered as valid pattern:
Pattern.compile("h]cat")
And this one as not valid:
Pattern.compile("h[cat")