Stats: 3,190,730 members, 7,941,760 topics. Date: Friday, 06 September 2024 at 12:52 PM |
Nairaland Forum / Science/Technology / Programming / Please Help Me To Test And Debug This GSM Number Extractor Logic (1276 Views)
Help Debug This Java Code / Assembly Language/debug Wahala / How Do U Program? Debug As U Code Or Debug After Coding? Which Is Best? (2) (3) (4)
(1) (Reply)
Please Help Me To Test And Debug This GSM Number Extractor Logic by ufumes(m): 9:07pm On Nov 23, 2012 |
I wrote a logic to extract and purify Nigerian phone numbers. The logic is meant to convert numbers in different format to a ready-to-use format that can be easily exported to applications that consumes gsm numbers. eg: (0803) 123 4567 =08031234567 (0803)-123-4567 = 08031234567 (080) 3123 4567 = 08031234567 0803 123 4567 = 08031234567 infact my intention is to write a logic that can extract and purify 100% of Nigerian GSM Numbers from any source! I intend to update the application, so i need to know the numbers that the application might have skipped! I need you to PLEASE test the application with different formats of Nigerian phone numbers and report here any number format that was not caught by the logic. I would also appreciate other advise and comments on the application. The application can be accessed from www.phonenumberextractor.com, PS: When you open the site, select the "Purified Extraction" option while extracting and testing the logic. Thanks |
Re: Please Help Me To Test And Debug This GSM Number Extractor Logic by Nobody: 11:01pm On Nov 23, 2012 |
0802-903-7894 2348029037894 +2348029037894 +234802-903-7894 +23408029037890 +234 802 903 7890 8029037894 802-903-7890 the list is endless the best way is to strip all dashes and whitespace, remove +, strip off 234 if it starts the number, strip +234 too then apply your logic doing all that one by one will be inefficient. You need a RegEx professional, Unfortunately, am not one, i forget all my regex after a while. |
Re: Please Help Me To Test And Debug This GSM Number Extractor Logic by ufumes(m): 11:58pm On Nov 23, 2012 |
webdezzi: 0802-903-7894 please try it again, the logic effectively extracted the numbers. Select the purified extraction option button before running the scan. Below are the output! 08029037894 08029037894 08029037894 08029037894 08029037890 08029037890 08029037894 08029037890 |
(1) (Reply)
Java Sdk8 File / Learn Ethical Hacking Online As A Beginner From Home, Join Us As A Programmer / Need C/c++ Compiler :
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 12 |