Assuming I have these variations:
1: Today is a beautiful day (Monday)
Today is a beautiful day (Monday)
2: Today is a beautiful day
Today is a beautiful day
I want to get Today is a beautiful day.
I'm trying preg_match('/(?=(^\w+.+))$|(?=(^\w+.+)\s\())/ui', $string, $matches) without success.
preg_match('/(?=(^\w+.+))$|(?=(^\w+.+)\s\())/ui', $string, $matches)
Aucun commentaire:
Enregistrer un commentaire