Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7743323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:30:15+00:00 2026-06-01T09:30:15+00:00

I am looking for any libraries in java that can parse an address out

  • 0

I am looking for any libraries in java that can parse an address out of a normal String of text. The text could contain all types of special and non-special 🙁 characters but all I really want to pull out of the original string is a rough address string.

In other words, how would I pull an address out of a random String containing an address in it somehwere? The format doesn’t really matter much, as long as the output has got the street and number in it somewhere. Would you use regular expressions for this if there aren’t any libraries?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T09:30:16+00:00Added an answer on June 1, 2026 at 9:30 am

    I don’t know of any libraries that do this… but, this sounds like an excellent artificial intelligence problem 🙂

    If you have any existing address books in ASCII/Unicode form, you could potentially use them to generate regex patterns, then run all known address regex patterns against your random text and see what comes out. This way you could kind of “teach” your algorithm how to behave based on known address formats. I suspect if any libraries do exist for this sort of thing, this is probably how they’d do it, because there are probably a TON of different ways to format a street address.

    One example could be in the typical US street address. For instance:

    1234 Main St. NW, Some City, ST, 12345 //[ST] = two-letter state abbreviation
    

    You could write a regular expression that looks for two numbers and a state abbreviation in-between. Of course, this would only work for US street addresses, it wouldn’t catch them all, and you’d have to be careful to constrain your regex to avoid false positives, but you could add that regular expression to your list of possibilities.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are there any good 2D geometry libraries for Java? I'm looking for anything that
I'm looking for any way that I can improve the selector performance of a
I'm looking for any tools that can give you code churn metrics (graphs and
I'm looking for a secure templating language for Java that business users can use.
I am looking for libraries that I can use to send Unix commands from
I am looking for APIs for Java that can print Microsoft Office and PDF
See http://www.sitepen.com/blog/2008/06/17/json-referencing-in-dojo/ for how it's used in dojo. I'm looking for libraries that can
I'm looking for information on any libraries or methods that would help me to
Does anyone know of any C container libraries? I am looking for something which
I am looking for any strategies people use when implementing server applications that service

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.