Posts by Germano • 21 points
1 post
-
2
votes2
answers107
viewsA: Get content that is before the number using regex
You can do this using the preg_match method preg_match('/^([^0-9]+).*/', "Aventura, Fantasia, Ação 25 de maio a 31 de maio", $matches); print_r($matches); A regex '/([ 0-9]+). */' will take all…