regex - Java: Delimiters and regular expressions -
i'm using scanner method work on string , need filter out junk
here's sample string
5/31/1948@14:57
i need strip out / @ :
theres doc: http://download.oracle.com/javase/1.5.0/docs/api/java/util/regex/pattern.html
but it's confusing.
if you're looking split up, use string#split()
string[] parts = "5/31/1948@14:57".split("[/@:]");
Comments
Post a Comment