phone numebrs and emails

Posted on 2006-04-07
Last Modified: 2010-03-31
Hello experts,

If I ahve a way to create a web crwaler in java to coillect and browse thru urls beginning at a particular page,, is there a way using regualr expression to find out contact information such as emails phones zip codes address from contacus pages of the websites that we are crawling?

Any lnks or tutorials would be much appreciated.

Question by:anup001
    LVL 10

    Accepted Solution


    There is an example on an Email Validation RegEx. It might be helpful. Now, phone numbers,
    it depends on the format you are using... If you post the format, I can help you with the


    Author Comment

    i think we will use the regular format XXX-XXX-XXXX or (xxx)-XXX-xxxx

    I know the use of regualr expressions but i meant to ask what would be the exact way of extracting such information from a crawler like thing.

    LVL 26

    Assisted Solution

    for the ph. no. the pattern will be as follow as,

    "(*[0-9][0-9][0-9])*-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]". May be sombody write a simpler one :)
    LVL 13

    Assisted Solution

    phone numbers
    if the number of digits can vary :

    for email addresses :


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
    Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now