K
Kelvin
Hi, there:
In some portions of my string, there are many quoted contents separated by ;
sign.
What I need is retain only one quoted content and remove the extras.
How can regex do this job?
For example,
===========================================
$str = ___d event; "he missed the test and had to take a makeup"; "the two
teams played a makeup one week later";;cosm___
===========================================
$new_str = ___d event; "he missed the test and had to take a
makeup";;cosm___
Thank you in advance.
In some portions of my string, there are many quoted contents separated by ;
sign.
What I need is retain only one quoted content and remove the extras.
How can regex do this job?
For example,
===========================================
$str = ___d event; "he missed the test and had to take a makeup"; "the two
teams played a makeup one week later";;cosm___
===========================================
$new_str = ___d event; "he missed the test and had to take a
makeup";;cosm___
Thank you in advance.