mercredi 1 septembre 2021

preg_match multiple numbers

I have the following string: H: 290​‐​314 P: 280​‐​301+330​​​​U+200B+331​string‐​305+351+338​‐​308+310 [2]

I need all the numbers after "P:" [280,301,330,331,305,351,338,308,310] Node that there is this U+200B witch is a char-code and should be ignored.

I tried #P:\s((\d+)[​\‐]+)+# but that doesn't work.

Aucun commentaire:

Enregistrer un commentaire