Click here to Skip to main content
11,927,711 members (54,307 online)
Click here to Skip to main content
Add your own
alternative version


21 bookmarked

Getting Zip+4 from

, 2 Nov 2005
Rate this:
Please Sign up or sign in to vote.
Getting Zip+4 from


I must start by stressing that this is for educational purposes only!! Ok, now that I got that out of the way.

The purpose of this project is to demostrate how to extract data from a website.

Lets get right to the good stuff.....the code!

The Code

The first step is to format the url with all the required information.

<P><FONT color=#0000ff size=2>Function</FONT>
<FONT size=2><P>strAdd = ReplaceSpaceWithPlusSign(txtAddress.Text)</P>

Now that you have the correcly formatted URL pass it to a function to read the websites source code.

<FONT size=2><P></FONT>

Now that you have the source code pass it to another function that uses regular expressions to find the zip code.

<FONT size=2><P></FONT>

Thats it!!


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Ryan Rader
Web Developer
United States United States
Specialize in interfacing SAP and .net applications.

You may also be interested in...

Comments and Discussions

Generalweb services Pin
yyyyyy8716-Oct-06 8:58
memberyyyyyy8716-Oct-06 8:58 

Does anyone know how to write web services using VB.NET to retrieve zip code, city, state and addresses from USPS web site?

Thank you in advance.


Generalopening database Pin
yyyyyy8725-Sep-06 7:05
memberyyyyyy8725-Sep-06 7:05 
Generalre:re: Looping Pin
yyyyyy8720-Sep-06 6:33
memberyyyyyy8720-Sep-06 6:33 
Generalre:Looping Pin
yyyyyy8720-Sep-06 5:46
memberyyyyyy8720-Sep-06 5:46 
Generallooping Pin
yyyyyy8719-Sep-06 13:31
memberyyyyyy8719-Sep-06 13:31 
GeneralRe: looping Pin
rader1919-Sep-06 14:12
memberrader1919-Sep-06 14:12 
GeneralRe: looping Pin
yyyyyy8719-Sep-06 19:41
memberyyyyyy8719-Sep-06 19:41 
GeneralRe: looping Pin
rader1920-Sep-06 1:41
memberrader1920-Sep-06 1:41 
QuestionAdding vb code to Getting Zip+4 from Pin
yyyyyy8714-Sep-06 8:27
memberyyyyyy8714-Sep-06 8:27 
Generalreq.ContentType appears 2x Pin
wdjyjvoxmmb27-Apr-06 12:26
memberwdjyjvoxmmb27-Apr-06 12:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.151126.1 | Last Updated 2 Nov 2005
Article Copyright 2005 by Ryan Rader
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid