Validating E-mails using Regular Expressions in Java

Έχουν δημοσιευτεί 01 Ιουνίου 12 05:27 μμ | Μπιρμπίλης Γεώργιος 
To sum up the discussion at http://stackoverflow.com/questions/1360113/is-java-regex-thread-safe/, you can reuse (keep in static variables) the compiled Pattern(s) and tell them to give you new Matchers when needed to validate those regex pattens against some string: import java.util.regex.Matcher; import java.util.regex.Pattern;  /** * Validation helpers */ public final class Validators {  private static final String EMAIL_PATTERN = [...]
Δημοσίευση στην κατηγορία: , , , , ,

Σχόλια:

Χωρίς Σχόλια
Έχει απενεργοποιηθεί η προσθήκη σχολίων από ανώνυμα μέλη

About Μπιρμπίλης Γεώργιος

Microsoft MVP J# 2004-2010 Borland Spirit of Delphi 2001 http://zoomicon.com

Search

Go

Ιστορικό Δημοσιεύσεων

Συνδρομές