I'm having difficulty with using a regular expression to validate/invalidate a repeating pattern like [*.*.*], where * are wildcards. For example, I could have a string java.sun.com which should validate or a string java.sun..com which should invalidate because of the double ".."
My thought was to use a RE like:
but repeating the expression doesn't work.