5 Replies Latest reply: Sep 21, 2008 9:43 AM by 807589 RSS

    Java Compiler Does Not Like My Regular Expression

      I use the regular expression (java.util.regex.*) to find out if the 5-digit US zip code is valid.

      However, I cannot pass the Java compiler. I have:
      private final String ZIP = '/(^\d{5}$)/';
      The compiler says: "invalid character constant". What should I do?