Creating RegEx (Regualar Expressions) values for Clip Board...
Overview
This article is to create a central location where Call Ctrl users can submit known RegEx values known to work in their given area. We plan on adding additional values, but need the help of our user base to extend this list.
The Clip Board Monitor feature allows a phone call to be initiated from essentially any Windows based application where a text-based phone number can be copied and automatically dialed through Call Ctrl.
The Clip Board Monitor scans the Windows Clip Board for phone numbers when a text value is copied using the Windows Copy and Paste feature. When a text value is copied in the Clip Board a user-defined Regular Expression is used to check and see if it is a phone number. If so, the text is then passed to Call Ctrl and a new phone call is initiated.
The only draw back to enabling this feature is that if there is a need to copy and paste a phone number for other uses, a call will be initiated. There are other programming methods to accomplish this feature, but reliability becomes an issue with most of the other methods. The Clip Board Monitor is by far the most reliable way of integrating Call Ctrl into essentially any Windows application.
Resources
The following is a list of countries we are currently developing support for. We wish users from these countries listed (or not listed) to provide us with either the RegEx values to help build and extend a collection of tested values.
Please submit a comment if you have developed a RegEx value known to work w/in Call Ctrl and your area. You may also email us at CallCtrl.Support<a>uctrlit.com if you need help. Please provide the various number combination common to your area and would be glad to see where we can help, but is ultimately up to the end-user for testing.
United States
RegEx Value
(\(?[2-9]\d{2}\)?)?(\s|-|\.)?\d\d\d(\s|-|\.)?\d{4,4}((\s|-|\.))?
Tested values known to work with:
- (949)743-0233
- (949) 743-0233
- 949.743.0233
- 949 743 0233
- 9497430233
- 949-743-0233
- 949-7430233
- 949.7430233
- 743-0233
- 743.0233
- 743 0233
- 7430233
Australia
RegEx Value:
^(\+\d{2}[ \-]{0,1}){0,1}(((\({0,1}[ \-]{0,1})0{0,1}\){0,1}[2|3|4|7|8]{1}\){0,1}[ \-]*(\d{4}[ \-]{0,1}\d{4}))|(1[ \-]{0,1}(300|800|900|902)[ \-]{0,1}((\d{6})|(\d{3}[ \-]{0,1}\d{3})))|(13[ \-]{0,1}([\d \-]{5})|((\({0,1}[ \-]{0,1})0{0,1}\){0,1}4{1}[\d \-]{8,10})))|(^\({0,1}0[2|3|4|7|8]{1}\){0,1}[ \-]{0,1}\d{4}[ |\-]{0,1}\d{4}$)
Tested values known to work with:
- +61 3 8123 1234
- +61 7 9123 1234
- +61-04-9123-1234
- +61-2-9123-1234
- +61-8-9123-1234
- +61-7-9123-1234
- +61-(03)-9123-1234
- +61 (03) 9123-1234
- 02 9123 1234
- 03-9123-1234
- (02) 9123 1234
- (03) 9123 1234
- (04) 9123 1234
- (07) 9123 1234
- (08) 9123-1234
- 1900-123-322
- 1900 322 232
- 1900322132
- 1902222032
- 1800-132 322
- 1 800 322 222
- 1300232322
- 13 73 23
- 132 221
- 0400 111 222
- 0400111222
- +61 400 111 222
- +61 (0)3 1234 4566
- +61 (0)411222333
- +61 (0)400-000-000
Please use any of the following resources to help write RegEx values for your area. The Regular Expression Library has a collection of phone number RegEx values for most areas around the world.:
Regular Expression Library
Regular Expressions Info
Please use the comments section below to post questions and information that may be later promulgated into the main article.
Add Your Comments
|
Last Modified:Tuesday, August 10, 2010
Last Modified By: Administrator
Type: FEAT
Article not rated yet.
Article has been viewed 335 times.
|