Can you help me please what is the regular expression pattern for this string change in preg_replace?
from "On the day, he is playing" to "he is good to play".
Regular expression for preg_replace
Moderator: General Moderators
Re: Regular expression for preg_replace
What is the relationship? Can you give more examples?
Re: Regular expression for preg_replace
Thank You.
Find "," and remove the string upto "," and replace remaining part.
Find "," and remove the string upto "," and replace remaining part.
Re: Regular expression for preg_replace
If you remove "On the day, " and replace what is left, it is the same as replacing the entire string.
How does "he is playing" become "he is good to play"? Do you have a list of words or phrases and their replacements? Do words in the form "...ing" get replaced with "good to ..."?
How does "he is playing" become "he is good to play"? Do you have a list of words or phrases and their replacements? Do words in the form "...ing" get replaced with "good to ..."?