Phone field regex problem

Hi, I need a little help with my regex... it works good, except for one last issue.
/^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4} ?)$/
I have a single phone field. And  it to allows just 10 digits, or digits with dashes, or digits with parenthesis, or digits with spaces. And it even allows the user to insert a white space at the end (by accident).  This all works good.
But I was told that no area codes in the US start with a 0 or 1?  How can I make it only have a range of 2 to 9 for the area code?
I tried to use [2-9] but this doesn't work.
Thanks in advance!

The problem is that you are trying to match three digits with a [2-9] range, not just the first number.
for example:
333-444-555 will match because all three of the first section of digits are between 2 and 9,
211-222-333 will not work, because 1, is the second number and you are only looking for 2-9.
does this make sense? you have the three first numbers group together in one rule
-Julia

Similar Messages

  • Ongoing phone and broadband problems

    I have wrote below about my ongoing problems with BT. I am going to use this thread as a record and to refer others to because if I have to go over it one more time I fear my brain will melt. Advice appreciated.
    Four months ago: Possibly/probably unrelated? I tried to make a phone call one day. The line was dead. Borrowed neighbour's phone as I thought I had a problem with the phone set itself but the line was dead with the neighbour's phone. The problem only lasted about a day. A few days later a BT engineer turned up. Installed a new face-plate over my phone socket.
    Three months ago: I've had a broadband speed of 20 megabit for about 18 months. Then 3 months ago that speed starts to get lower. First to 8 megabit. Then 4 megabit. I remember one day doing 5 different speedtests* and getting just over 1 megabit on all 5. That's not the only problem. Whenever I get an incoming call or make an outgoing call my broadband is disconnected. This is happening 100% of the time and is still happening.
    Two months ago: Phoned BT. After about 80 minutes on the phone I'm told it looks like the problem is our (BT) end. I was told I would receive a phone call the next day. I got that phone call and was told my connection would be back to 20 megabit in a couple of days. It never happened. Even as I was being told my connection would be back to 20 megabit in a couple of days I didn't have any faith in what I was being told. Maybe just something in the tone of the person I was speaking to gave me that feeling.
    A few weeks ago. Some Scottish guy from BT calls me trying to sell BT Vision. I said 'no' and took the chance to tell the guy of my ongoing problems.
    Background info: I have been at my current address and had a BT account for about 10 years. I just need to drop back maybe 4-5 years now when I was told by BT, over the phone, that I would be receiving a BT Home Hub (BTHH). I didn't ask for it. I already had a Netgear modem/router. That BTHH never turned up. I wasn't really annoyed about not getting a BTHH. I was angry that I didn't get a letter/phone call explaining why. Then about a year later I was on the phone to BT and mentioned that I had been told that I would receive a BTHH but it never turned up. This time I was 'promised' that I would receive a BTHH. Again it (BTHH) or a letter/phone call explaining why it wasn't being sent never happened.
    Back to the BT Scottish guy I told the Scottish guy about my lack of a BTHH and finally I get an answer. Apparently I need a 12 month contract. I told him I couldn't commit to a 12 month contract right now as recently I have taken a dip in my income. One morning a few days later and a BTHH arrives from the postman. I unpack it but just before plugging it in I remember the phone call with the Scottish guy and so I just put the BTHH away in a cupboard where it still is. Plugging it in would mean committing to a 12 month contract.
    I've now learnt this morning from BT that apparently I have committed to a 12 month contract early September which would be around the time of the Scottish BT guy phone call. Clearly there's been some mis-communication between the Scottish guy and myself.
    23 September In an attempt at trying a different route to solve my problems I put in a complaint. It turned out to be quite a wall of text which I hate giving to anybody but there's so much to go over. By the way since 20th September my download speed is 0.25 megabit. My upload is faster!
    29 September I received a phone call from BT and the person that phoned started to tackle my broadband issues. By this time I'm seriously thinking of putting in a complaint about how complaints are dealt with. Basically in that 23rd Sept. email I went over everything which I'm telling you guys about now. I also told them that I understood a 12 month contract, which I couldn't commit to, was needed for the BTHH but as I have one sitting idle in a cupboard here at home and I've been with BT for at least 10 years and I've been told (promised) that I would receive a BTHH twice over the years (when I didn't even ask for one!) then how about letting me have it. Or at least plugging it in to see if that resolves the problems as that might even save BT having to send out an engineer.
    30 September The lady I spoke to on the 29th told me somebody would phone the next day. By now I have deja-vu of what happened two months back. I got the phone call earlier which was how I found out that apparently I committed to a 12 month contract early September. The guy said I should probably speak to accounts first so I'm waiting for a call from them now.
    This has all turned into a convoluted mess that could of been solved two months ago. I have a BTHH which I can't use but which might solve my problem (although if it does I don't understand why as my Netgear modem/router does work). I'm very tempted to switch providers but maybe my problem still needs to be looked at by BT even if I was with another provider? My bill is now overdue and whilst I can't commit to a 12 month contract I do have the money for the latest bill. But would you pay for an internet of 0.25 megabit which should be 20 megabit? Or a phone that dis-connects your broadband.
    The overall annoying thing about this is how my email complaint was handled. The complaint(s) need to be tackled as a whole. I have a couple of friends and have read many stories of people phoning BT and then after complaining they get some deals. Now whoever read my complaint, and I have a copy which I can provide, should of seen that I'm clearly 'in limbo' so to speak and said either 'keep the BTHH' or 'we may need you to send the BTHH back but for now try connecting it up to see if that resolves the problems'. Instead it looks like my email was read and then passed onto the broadband department. The lady who phoned on the 29th thought I was using the BTHH even though she had my email in front of her. I know that as she quoted a couple of lines from it. The guy who phoned this morning also thought I was using the BTHH.
    All that's needed now is for BT to dis-connect me for an unpaid bill! I personally feel that I should get some compensation for such a poor connection over the last 4 months.
    For all speed tests I used the BT wholesale one apart from*

    Here's some screengrabs from BT wholesale taken at various times.
    After that a couple of screens from my Netgear taken today.
    I did run Routerstats Lite over a few days when this started. However I don't know what to look for in Routerstats which might be the problem.
    7 August
    20 August
    7 September
    27 September
    30 September
    Netgear Router status 30 September
    Netgear stats 30 September

  • With my i phone 4 , the Push notifications doesn't work for apps like (fb viber , whatsapp etc ) it only works for the official apps like message  even when im using the phone, has  this probleme with the iOs 6.0.1 and also with the iOs 6.1

    With my i phone 4 , the Push notifications doesn't work for apps like (fb viber , whatsapp etc ) it only works for the official apps like message  even when im using the phone, has  this probleme with the iOs 6.0.1 and also with the iOs 6.1

    This isn't an issue. Notice the screen prior to the one that shows usage has an iCloud section and a Manage Storage button. For this button to activate ios needs to download a few kb from icloud. Switching back to this screen forces ios to download those few kb.

  • Lumia 620 & Windows Phone App Connection Problems

    I've been having problems with a Lumia 620 connecting to the Windows Phone App on my Windows 8 laptop. The App keeps reporting that the phone has a problem and is not playing nicely. I've eliminated the laptop as the issue as my Lumia 920 connects without a hitch. I'm guessing the issue is with the Lumia 620's software as it was recently updated in the past two months. Any solutions out there apart from resetting the phone?

    you could try to uninstall the windowsphone app from your laptop and reinstall it to see if maybe it wasn't connecting and loading the drivers correctly.

  • Xperia Z Phone Continuous Vibration Problem - A Pain in the Neck

    I just wanna know something.. I bought the Xperia Z in March'2013 and I just love, love, love it. However, it started to act weird, maybe two weeks back, when all of a sudden it started to vibrate, (maybe for 3 or 4 hours non stop) and factory settings reset did not help at all. So, had to update the phone software AGAIN using Sony Companion which was pretty frustrating. After losing all my data (since I had forgotten to keep a back up), I was finally able to fix it (which now seems was temporary). The phone has started acting all weird again, it has started vibrating again and I tell you its very annoying after having burned a hole in my pocket just to buy it. So, how many times, just how many times will this be a pain in all the wrong places possible?
    Another thing is that, the battery literally gets heated up, if I have the internet (2G/3G) on or even the Wi-Fi or if I'm listening to music and it becomes really hot. The battery really drains out super fast and I have to charge it yet again. So, now I want to know what would be the best possible solution because I need one, and I need it fast. The phone is still under the warranty period so I am thinking of having it replaced 'cause I can't (Read: Simply CANNOT) afford to have this phone giving me problems over and over again.
    So help! I want this FIXED and want it FIXED Asap!
    Really ******ed & disgruntled Customer
    Jo
    Solved!
    Go to Solution.

    Jo,
    There is a board on the Xperia community dedicated to the Z and ZL Xperia phones.
    I would post your comment over there for you, but I want you to get updates when someone replies to your post.
    The url of the board is:
    http://talk.sonymobile.com/community/support/xperia_z_zl
    Hope they can resolve your issue quickly for you.
    Thx
    ~Doug

  • HT1349 MY I PHONE 3GS NETWORK PROBLEM NO SHOWN NETWORK AND I N'T DIELD NUMBER WT CAN I DO?

    MY I PHONE 3GS NETWORK PROBLEM NO SHOWN NETWORK AND I N'T DIELD NUMBER WT CAN I DO? plz help me

    Please stop SHOUTING at us!  Typing in all CAPS is rude and considered shouting, frankly it makes you come across as a jerk.
    What it the issue?  The posting makes no sense.
    If it's a network issue, have you contacted the carrier?

  • BTCUSTOMERH fields in Problem (SM 7.1 SP10)

    Hello experts!
    I have SM 7.1 SP10. I created Z fields in BTCUSTOMERH of Incident using AET.
    I want to add created BTCUSTOMERH fields in Problem document, but this BTCUSTOMERH fields are not present in Context:
    How to add BTCUSTOMERH to AIC_PROBLEM_H?

    Hello Dmitry,
    Go to BSP_WD_CMPWB transaction, on field Component write "AIC_IM_REQ_H" and select display.
    Once the next screen is open, on the left side you can see a tree with all reference object related to that component, search and open "Views" -> "AIC_IM_REQ_H/IncidentOV" .
    on the right side you can see      3 tabs, "View Structure" / "RT Rep Details of View" / "Configuration"
    On "Configuration" Tab you can see the current configuration for your view, using an Enhacement I think that you can edit that view as your need.
    I never edit that view so i don't kno how to delete "title 2" block as you need, but maybe if you ask some developer he can do it for you using some code Enhacement .
    Regards,
    Luis

  • Field order problem I think

    I just burned through 10 dvds and they all look terrible. There are all these wavy lines. Is this a field order problem? If so, how do I correct it. I have missed my deadline and I am in big trouble. Please help.
    Thanks

    I just burned through 10 dvds and they all look
    terrible. There are all these wavy lines. Is this a
    field order problem? If so, how do I correct it. I
    have missed my deadline and I am in big trouble.
    DV formats ALWAYS use field 1 dominance -- LOWER FIELD FIRST!
    Since your content was created in a graphics program and not a DV camcorder, be sure to read through: http://www.greatdv.com/video/fields.htm
    BTW, It's ALWAYS the best idea to create a disk image out of iDVD (an option under FILE). Verify the image plays correctly with Apple's Disk Utility and then make the actual burns to writable media with Apple's Disk Utility or Roxio's Toast. Use quality DVD-R media (Verbatim or Maxell) and burn at 4x speed or lower.
    F Shippey

  • Populate IP Phone field in AD based on entries in a csv file

    Hi,
    Is there a way to populate the IP Phone field in AD based on a csv?
    I tried the following link but no luck: http://en.community.dell.com/techcenter/powergui/f/4834/t/19569423
    Thanks in advance,
    Johnross

    Dear gregoryg72,
    Thanks for the quick reply. I get the below error:
    Set-Aduser : Cannot find an object with identity: '*username*' under: 'DC=*domain*,DC=com'.
    At C:\extensions.ps1:5 char:1
    + Set-Aduser -identity  $_.username -Add @{ipPhone=$_.ipphone}
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (*domain*\*username*:ADUser) [Set-ADUser], ADIdentityNotFoundException
        + FullyQualifiedErrorId : ActiveDirectoryCmdlet:Microsoft.ActiveDirectory.Management.ADIdentityNotFoundException,Microsoft.ActiveDirectory.Management.Commands.SetADUser
    I have tried with the username, full email address (which is used as a login), domain\username, nothing seems to do the trick. Any idea what could be wrong? Just to let you know I have manually updated the text in the asterix to omit domain name and username.
    Thanks in advance,
    Johnross

  • I m updated my phone but some problems occured, so i connect it to itunes and it said "your iphone is detected in recovery mode" so i tried restore it but was unsuccessful and it shows different unknown errors such as 14, 2009,1611. Please help

    i m updated my phone but some problems occured, so i connect it to itunes and it said "your iphone is detected in recovery mode" so i tried restore it but was unsuccessful and it shows different unknown errors such as 14, 2009,1611. Please help

    Hello Mubashir surf google and try pressing power and home button at the same time untill apple sign shows up and then leave it .
    Otherwise surf google you mite have to edit you host file in windows , system32
    Let me know if it works

  • I'm trying to sync my lady's iphone and it keep cancelling sync... I've synced 4 other phones with no problem... here's acting like it's playing hard to get... Help

    My lady's iphone won't sync... Every attempt ends in a mesage saying "cancelling sync." I've synced my phone with no problems.. I'm stomped as to why her phone is playing hard to get.. Please help!

    Hi,
    I do have iDVD, but, and I shouldn't have included the mention of eventually needing a DVD, my primary concern is to try and make an MPEG 4.  I've tried using share to go to .m4v and the system tells me to shut iMovie down, and won't render it at all.  That one time I did run the MPEG 4 as I said, the image looked terrible - not just mildly so, but in some parts almost unwatchable.
    I'm running blind on editing at this point because of the size of the project - sound is garbled and it takes forever to do any sort of editing - all I get is the spinning wheel of death.  I really just need to get an MPEG 4.

  • OrgModeler - Employee Profile Telephone and Sec. Phone fields

    Hi experts,
    We're on OrgModeler 3.0 SP2.
    On the employee profile panel, the telephone and sec. phone fields are showing "n/a". Is telephone not being read from infotype 105 subtype 0020?
    Thanks in advance,
    L

    Hi L,
    I assume that you talk about the OrgChart module in OrgModeler (not the Scenario module)?
    This data is returned in the NakisaRFC function SAPPositionIncumbentDetails.xml. It uses the following keywords that can be displayed and changed in the Data Center (ABAP Add-on Keywords).
    <keyword name="EmployeeFaxSubType">
      <value>0005</value>
      <description>Employee Fax Subtype</description>
    </keyword>
    <keyword name="EmployeeCellSubType">
      <value>CELL</value>
      <description>Employee Cell Subtype</description>
    </keyword>
    <keyword name="EmployeeEmailSubType">
      <value>0010</value>
      <description>Employee Email Subtype</description>
    </keyword>
    <keyword name="EmployeeTelephoneSubType">
      <value>0020</value>
      <description>Employee Telephone Subtype</description>
    </keyword>
    If these are correct but you are not getting the information then check the cds.log file to see if there are any errors.
    Best regards,
    Luke

  • IPad was connected to my home WiFi, but now won't connect.  my phone has no problem connecting though

    IPad won't connect to my home WiFi. Was connecting fine then stopped.  My phone has no problem connecting to same WiFI.  Confused.

    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    6. Potential Quick Fixes When Your iPad Won’t Connect to Your Wifi Network
    http://ipadinsight.com/ipad-tips-tricks/potential-quick-fixes-when-your-ipad-won t-connect-to-your-wifi-network/
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    iOS 6 Wifi Problems/Fixes
    Wi-Fi Fix for iOS 6
    https://discussions.apple.com/thread/4823738?tstart=240
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    How to Boost Your Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Boost-Your-Wi-Fi-Signal.h tm
    Troubleshooting a Weak Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/Troubleshooting-A-Weak-Wi-Fi-Sig nal.htm
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    Wi-Fi or Bluetooth settings grayed out or dim
    http://support.apple.com/kb/TS1559
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Why can I login to iTunes from my phone with no problem, but I can't login to iTunes from my desktop.

    Why can I login to iTunes from my phone with no problem, but I can't login to iTunes from my desktop using the same login credentials. I can use a different appleID and login to itunes with no problem.

    Thanks for your reply.  I mean that only when all of my music in the cloud is shown on my phone can I delete the music stored on my phone.  I should be able to delete music that is stored on my phone when I can view ONLY the music that is taking up the phone's memory.

  • IPhone 4-Caller can't hear my voice. Checked the mute button and had restart the phone. Still problem occurred. HELP ME PLS!

    iPhone 4-Caller can't hear my voice. Checked the mute button and had restart the phone. Still problem occurred. HELP ME PLS!

    I'm having same problem with my 3G. When I adjust my ringer volume it says headphone in parentheses. I can still hear thru headphones. Until u get it fixed maybe u could try this as a temp solution. Good luck.

Maybe you are looking for

  • Driver program Configurations for CO03/CO02

    Hi All, Requirement: We are configure script and driver program in OPK8 With list type LP01. Issue: This driver program is not triggered CO03/CO02 transaction level For this we need configure any other transaction. Can you suggest me how to resolve t

  • How to highlight a text in Pqges?

    Hi, does anyone knows how to highlight a text in Pages for iPad??

  • Can't install C:\AS10gNT_Disk1 on windows-desperated--Help .

    Can't install C:\AS10gNT_Disk1 on windows-desperated--Help . hello forum it seems as if i have miss understood something about installing C:\AS10gNT_Disk1,2,3. 1: i have unziped all the 3 zip files in there respectivelly folders. for examples.C:\AS10

  • Is it possible to get high quality result in FCE (Sony AVCHD camcorder)?

    i have a Sony HDR-SR10 camcorder (AVCHD) and i import directly my footages in FCE. I export video using the Quicktime with H264, and then burn the result on a DVD using iDVD or Toast. With that method, i can obtain good quality in the STATIC images,

  • How do I find out how much tax costs

    Trying to purchase an app via the app store, the app is $99.99 and I have $100 in credit.  But I am getting the error that I have insufficient store credit to make the purchase.  In the forums, others have had the same issue, and many of those issues