Find Jobs
Hire Freelancers

PHP Regular Expression - String Replacement inside a Paragraph

$30-250 CAD

Dokončeno
Zveřejněno přibližně před 6 roky

$30-250 CAD

Zaplaceno při doručení
Requirements: - Write a PHP function that accepts a needle (search keyword) and a haystack (paragraph of text). - Regular expression (preg_replace or similar) inside the function must do a case insensitive replacement of $keyword with <span class='keyword'>$keyword</span> --- Do not replace inside words --- Replace only when bordering characters of word are punctuation (.,;:!?), newline or space. Do not remove the punctuation. ---- Include test cases. Example before: The horse jumped over the fence. Example after: The horse jumped over the <span class="keyword">fence</span>. I wrote some REGEX tests which are not working properly, however these may give you some ideas: $text = preg_replace('/[^a-zA-Z0-9]' . $keyword . '[^a-zA-Z0-9]/i, " <span class='keyword'>".$keyword."</span>", $text) $text = preg_replace('/\b(?:[^\w,\n]+[a-z]+)*\b(' . $keyword . ')\b([^\w,\n])/i', " <span class='keyword'>".$keyword."</span>", $text) Project must be completed within 2 days. Please do not bid if you are unable to work within the timeframe. I will only work with developers directly. Any bids from salesmen will be declined.
IČ projektu: 16171226

O projektu

15 nabídky
Vzdálený projekt
Aktivní před 6 roky

Chcete si vydělat nějaké peníze?

Výhody podávání nabídek na Freelancer

Stanovte si rozpočet a časový rámec
Získejte za svou práci zaplaceno
Načrtněte svůj návrh
Registrace a podávání nabídek je zdarma
Uděleno:
Avatar uživatele
Hi, i m serious freelancer with 100% completion rate and i believe i can help you. I've done many Regex projects here without a single problem and i can write this regex for you in less than 30 minutes. If you are interested please message me and i will start immediately. Thanks, Milan
$30 CAD v 0 dni
5,0 (178 recenze)
6,1
6,1
15 freelanceři nabízejí v průměru $129 CAD za tuto práci
Avatar uživatele
I am a Professional Freelancer with experience of more than 7+ years with specializing in Web-Development & Designing (Wordpress ,Woocommerce, eCommerce , PHP, Bitcoin,Webservices,PaymentGetway, Mysql,Css3,HTML5). I want to work with you LONG TERM. I have a strong sense of responsibility in everything that I do and able to get things done even on tight deadlines. I love programming and coding, I love complex challenges and super reliable even on the tightest deadlines – I will keep our cool and get things done I have fantastic communication skills and a VERY ORGANIZED personality. I love Checklists, Check-boxes, analyzing things. I have successfully designed and launched cost effective websites for individuals and businesses worldwide. From high end eCommerce website development to the simplest logo design needs, I help you realize your vision. using the latest in website development technology, I provide you with amazing services at very competitive prices. Best regards,
$88 CAD v 3 dnech
4,4 (90 recenze)
6,0
6,0
Avatar uživatele
Hi greetings of the day I am a Experienced PHP Developer based out in Chennai,India. My experience revolves around development of web and mobile applications,Ecommerce websites. I believe that I am well qualified to undertake the task at hand and deliver a good solution. I would like to discuss this project and your exact requirements. I am confident that I can develop you based on your requirements. looking forward to hear from you soon so that we can get started on this one. Thanking you, All the very best, Cheers!!! Saurav
$155 CAD v 3 dnech
4,7 (46 recenze)
4,8
4,8
Avatar uživatele
Hello Sir, I am good in change text from paragraph. There is not only preg_match but str_replace and Linux sed function also used. I have 12 year experience in PHP , MySql and MVC framework. I will provide good and quick service your requirement without any bug. Please come at chat so we can quickly start and complete task in just few days. Thanks,
$250 CAD v 3 dnech
5,0 (22 recenze)
4,3
4,3
Avatar uživatele
HI, You need to create some php code according to logic describe It focus on regular expression. I am full stack php developer. MY skills includes :- code igniter, laravel, cakephp, symphony etc. I think, skills will help you to accomplish such code Let's have a chat and discuss more about it. Thanks and best regards Kedar J.
$133 CAD v 2 dnech
4,9 (15 recenze)
3,6
3,6
Avatar uživatele
Hello there, I have rich experience in working with regex, php. I would like to work on your project. Message me for more details. Relevant Skills and Experience PHP, regex, regular expression
$122 CAD v 1 dni
4,4 (14 recenze)
4,0
4,0
Avatar uživatele
A proposal has not yet been provided
$155 CAD v 5 dnech
4,9 (3 recenze)
3,4
3,4
Avatar uživatele
Hello, I did many website where pregmatch is compulsory to full fill customer requirement, i did in HR template to replace user name with the name of candidate and many more, May i know in detail about your project.
$35 CAD v 3 dnech
0,0 (0 recenze)
0,0
0,0

O klientovi

Pochází z CANADA
Calgary, Canada
5,0
118
Ověřená platební metoda
Členem od pro 20, 2005

Ověření klienta

Díky! Poslali jsme vám e-mailem odkaz pro získání kreditu zdarma.
Při odesílání e-mailu se něco pokazilo. Zkuste to prosím znovu.
Registrovaných uživatelů Zveřejněných projektů
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Načítání náhledu
Bylo uděleno povolení ke geolokaci.
Vaše doba přihlášení vypršela a byli jste odhlášeni. Přihlaste se znovu.