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 6706125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:29:01+00:00 2026-05-26T07:29:01+00:00

I am having to parse a file for mailing addresses… The problem is somelines

  • 0

I am having to parse a file for mailing addresses… The problem is somelines contain a address and some do not…. The ones that do not contain a mailing address also do not have a zip code… Is there any string pattern match i could use to manage checking for the zip code??? something like

IF not string.isnullorEmpty(_Customer) then
    If _Customer"" ZIP CODE STRING TEST "" THEN
     {do what it should if its is true}
    Else
     {Do something else}
    End If
end if
  • 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-05-26T07:29:01+00:00Added an answer on May 26, 2026 at 7:29 am

    Depends how complex you want your zip code checking to be, here’s a method we use to validate US and Canadian Postal Codes:

    Public Shared Function ValidZip(ByVal cZip As String) As Boolean
        'Check if zip code is either NNNNN-NNNN, NNNNN, ANA NAN 
        Dim rZip As New Regex("^((\d{5}-\d{4})|(\d{5})|([A-Z]\d[A-Z]\s\d[A-Z]\d))$", RegexOptions.IgnorePatternWhitespace)
        If Not rZip.IsMatch(cZip) Then
            Return False
        End If
    
        Return True
    End Function
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a problem parsing a JSON file in AS3. Im trying to parse
I have a file log that I would like to parse and am having
i'm having some troubles trying to parse an XML file and display the results
I am attempting to parse an output file for some data, and am having
I'm using DOM to parse an xml file. And I am having trouble catching
I'm writing some JavaScript code to parse user-entered functions (for spreadsheet-like functionality). Having parsed
I am trying to parse the XML file in R, so that I can
I've an xml file that I would avoid having to load all in memory.
I'm having trouble determining a way to parse a given text file. Here is
i have a json file with unicode characters, and i'm having trouble to parse

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.