vendredi 20 juillet 2018

Regular expression to delete numbers at the end of a string PHP

I don't understand regular expressions, if a string contains a number at the end of its name, I want to delete that number.

For example:

Polar blanket 75x100

Polar blanket 100x200

Polar blanket 120x140

I want this:

Polar blanket

Polar blanket

Polar blanket

Can somebody help me?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire