rocket976 62 Posted August 6, 2012 Report Share Posted August 6, 2012 Hi having lots of fun with this string : ((\(\d{3}\)?)|(\d{3}))([\s-./]?)(\d{3})([\s-./]?)(\d{4}) Matches 1.2123644567 | 0-234.567/8912 | 1-(212)-123 4567 trying to modify it to also allow 1 (212) 123-4567 Any idea how to also allow a space in place of the "-" ? 1"-"(212)-123 4567 Quote Link to post Share on other sites
rocket976 62 Posted August 7, 2012 Author Report Share Posted August 7, 2012 Anyone? Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted August 7, 2012 Report Share Posted August 7, 2012 try this ([0-9-_. /]{2})?\(?\b([0-9]{3})\)?[-. /]?([0-9]{3})[-. /]?([0-9]{4})\b http://screencast.com/t/PNYitFGA0Ghe 1 Quote Link to post Share on other sites
warriorfullights 0 Posted August 17, 2012 Report Share Posted August 17, 2012 I really get too much confusion just by reading this string.. Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted August 20, 2012 Report Share Posted August 20, 2012 its a regex code, if you dont know how to use it i wouldnt try.. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.