Find Jobs
Hire Freelancers

Create a PHP function with regex parser for phone numbers to convert into links

$10-30 USD

Cancelled
Posted about 10 years ago

$10-30 USD

Paid on delivery
Hi, I want to have a PHP function that will parse a text searching for phone number patterns. Need to keep a format and create a a link. Here are some examples of what I want: 1-300-400-600 => <a href="[login to view URL]">1-300-400-600</a> 020 7378 4482 => <a href="[login to view URL]">020 7378 4482</a> (020) 7378 4482 => <a href="[login to view URL]">(020) 7378 4482</a> (020)-7378-4482 => <a href="[login to view URL]">(020)-7378-4482</a> +0034606890789 => +<a href="[login to view URL]">0034606890789</a> 976 789 345 => <a href="[login to view URL]">976 789 345</a> 976-789-345 => <a href="[login to view URL]">976-789-345</a> 91 37 89 345 => <a href="[login to view URL]">91 37 89 345</a> Only for numbers bigger than 5 digits and smaller than 14 digits. If there is a carry return, end the number. So this would be two different numbers: 1-400-600-700 0001115 As: <a href="[login to view URL]">1-300-400-600</a> <a href="[login to view URL]">0001115</a> Pretty much the same for any phone number format. The href needs to be always the number without spaces and symbols/or and the anchor must be the same as given. The function will get as a parameter the text to parse, and will return the same text with the numbers replaces for links. Also, the tool should get a phone number as a parameter and if this case is found in the text it won't be converted to link.
Project ID: 5691606

About the project

9 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
9 freelancers are bidding on average $27 USD for this job
User Avatar
Hello, I got the idea of that function, but will the input text will contain many phone numbers, or each argument will contain only one phone number per time? Best Regards
$45 USD in 1 day
4.8 (155 reviews)
6.0
6.0
User Avatar
hi, I am interested to develop parser to parser phone number as per your given rules. Please see my previous work and let me start the work. Thanks Prakash
$30 USD in 1 day
4.9 (39 reviews)
4.6
4.6
User Avatar
I developed the function for you, If you need it I can give you right now. Ready to give you the solution.
$15 USD in 0 day
5.0 (22 reviews)
4.2
4.2
User Avatar
Hey, I might be able to do this job. If you don't mind would I ask you a question? Would you want to detect the numbers in a format like 0000-000 or 000-0000-00 or 0-00-000? Would you just need the function? I mean how you wanna use it. Would you tell me please? Ask me any question if you want. Thanks Jobaer
$35 USD in 1 day
4.9 (14 reviews)
4.1
4.1
User Avatar
I am specialize in C++,C#.net,ASP.Net,JAVA, PHP, MySQL, Wordpress, Web Designing and framework like CodeIgniter. my aim to deliver quality products to our customers within specified deadline. If hired by you I will put in my best work. I am ready to be hired by you and start work on your jobs PM to me for more discussion
$24 USD in 1 day
5.0 (6 reviews)
2.6
2.6
User Avatar
Hi pirneo, I hope that you are still looking for someone to do this task, I will be pleased to do it for you; send me a private message when you will be online. Thanks, Sofienesof
$23 USD in 1 day
5.0 (1 review)
0.8
0.8
User Avatar
Hello sir, i am a 3+ year experienced PHP developer ,if you allow means now itself i can start coding, i am waiting for your reply
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED KINGDOM
London, United Kingdom
5.0
45
Payment method verified
Member since May 22, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.