I have links that look like
/event-tickets/733893/New-
York-Yanke
es-vs.-Chi
cago-White
-Sox
/event-tickets/896377/Chic
ago-White-
Sox-vs.-TB
D---ALDS-H
ome-Game-2
-(If-Neces
sary---Dat
e-TBD)
I need a php regex routine that goes link by link contained in a string and adds .php on the end of the links it finds. As you may guess, the "/733893/New-York-Yankees-
vs.-Chicag
o-White-So
x" text varies on each link. After the routine the link should look like this,
/event-tickets/733893/New-
York-Yanke
es-vs.-Chi
cago-White
-Sox.php
Start Free Trial