Validate Localized Data with Regular Expressions

“Data validation is a common chore in programming any user interface. The Java language’s regular-expression support can make data validation easier. You can define a regular expression that describes valid data and then let the Java runtime see if it matches. But certain types of data have different formats in different locales. The ResourceBundle class lets you work with locale-specific data in an elegant way. This article shows how to combine the two techniques to solve a common data-entry problem.”

13 Comments

  1. 2005-12-26 12:39 am
    • 2005-12-26 8:03 am
      • 2005-12-26 8:20 pm
        • 2005-12-26 8:36 pm
          • 2005-12-26 9:10 pm
          • 2005-12-26 9:14 pm
    • 2005-12-26 9:57 am
    • 2005-12-26 11:58 am
  2. 2005-12-26 2:17 am
    • 2005-12-27 10:40 pm
  3. 2005-12-26 7:42 am
  4. 2005-12-26 7:45 am
  5. 2005-12-26 10:37 pm