+ Reply to Thread
Results 1 to 7 of 7

RegExp Pattern

  1. #1
    Registered User
    Join Date
    10-23-2009
    Location
    USA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    75

    Cool RegExp Pattern

    Hello,

    I have been having freinds here help me out and very please at the stage we are at. The RegExp pattern only works with USA number I need an or statement inside the RegExp Pattern to support UK phone numbers too 44-####### or 353-#######

    Please Login or Register  to view this content.
    MB

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: RegExp Pattern

    Hi MB,

    I don't use RegExp, personally, but I'm assuming this is the US phone number bit:
    Please Login or Register  to view this content.
    My best guess would be to replace that with:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-23-2009
    Location
    USA
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    75

    Re: RegExp Pattern

    Yes that is the USA Phone number string and the parsing works well tell I figure out it dropped all the none USA company, as parsing blocks of 55,000 line. I need the RegExp to try all three types of number and parse than just pasre one style.. I will see about posting sample just USB at work now. Trying to setup loop to do each style

    MB
    Last edited by MBCMDR; 12-08-2009 at 12:12 AM.

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: RegExp Pattern

    Hi MBCMDR
    could you test it before Execute
    Please Login or Register  to view this content.
    just add your patterns to the array
    Last edited by pike; 12-08-2009 at 04:18 AM. Reason: spelling
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: RegExp Pattern

    Hello MB,

    Been out of town working on other projects. Here is the RegExp Statement to check for either US or UK phone numbers.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  6. #6
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: RegExp Pattern

    Boy I'm glad someone knows RegExp. To me, that pattern looks like what I yell when I stub my toe.

  7. #7
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: RegExp Pattern

    Hello Paul,

    I like that description. Regular Expressions are pretty much a language all their own. People have written books on how to use them.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1