Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
Java
Pattern address = Pattern.compile("[0-9]{1,4}\\s([A-Za-z]+\\s?([A-Za-z]{2,})?)\\s[A-Za-z]+,\\s[A-Za-z]{2,}");

Please explain this line with example

I need your help... please reply quickly
Posted
Updated 19-Apr-14 21:37pm
v2

1. Java Regex - Tutorial[^]
2. Java - Regular Expressions[^]

Please read and find out how exactly patterns work. You can find many other tutorials if you search in Google.
 
Share this answer
 
Comments
Member 10604981 21-Apr-14 23:31pm    
Really thank you sir :)
Welcome bro and I am Tadit not "sir". :)
 
Share this answer
 
Comments
Member 10604981 21-Apr-14 23:31pm    
Thanks alot sir :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900