Pb de string

Salut,

Pourriez vous me dire comment extraire un nombre d'une string ?

ex : obtenir "19" à partir de "hfhdsfh19dfsdf".

J'essaye avec ereg("^[:digit:]+$",$string,$resultat) mais je comprends pas pkoi ca renvoie rien.

Si qqun peut m'aider.... merci bcp!

1 réponse

  • Votes
  • Date
  • Date décroissante