<?php preg_match( '/(\d) de (enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre) de \d{4}/', 'hola hoy es 4 de enero de 1988', $matches); echo $matches; // 1234
You have javascript disabled. You will not be able to edit any code.