Small Regex job

Pågår Lagt ut 5 år siden Betales ved levering
Pågår Betales ved levering

I need a REGEX (PHP) which does the following:

Look for "*word1*" in a multiple line text string, and replace the entire text string (not only the word1) with "word2" if found "*word1*", and replace the entire text string with "" (blank) if not found "*word1*"

This must be one regex expression doing this and NOT a php code "if / else clause".

JavaScript PHP Programvarearkitektur Nett-scraping

Prosjekt-ID: #18645674

Om prosjektet

3 bud Eksternt prosjekt Aktiv 5 år siden

3 frilansere byr i gjennomsnitt $50 for denne jobben

fakhirsiddiqi

Have extensive experience in regex not only on php but also on javascript, python, java and Oracle. Guaranteed finish in a day.

$25 USD på 1 dag
(2 Omtaler)
1.5
pksalo6

Hello.. I am priyankush I am having Digital Agency running here in India by which we are providing various digital services including but not limited to Website Designing, Website Developments, Mobile Application Devel Mer

$99 USD på 5 dager
(0 Omtaler)
0.0
raigenputhoor

Hi I am Interested in your project. Please message me to discuss details about the work. Best Regards

$25 USD på 1 dag
(0 Omtaler)
0.0