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

Popular posts from this blog

php - How to build a web site which gives a sub-domain dynamically to every registered user? -

c# - Add item to Generic List / Collection using reflection -