PHP regex:Find all 6 digit numbers in a string that do not end in 00

Posted by Argiropoulos Stavros on Stack Overflow See other posts from Stack Overflow or by Argiropoulos Stavros
Published on 2010-05-25T15:17:01Z Indexed on 2010/05/25 15:21 UTC
Read the original article Hit count: 181

Filed under:
|

Hello all I'm trying to find all the 6 digit numbers in a string that do not end in 00. Something like that /([0-9]{4})([^00])/ //i know this is wrong

so the string

asdfs dfg_123456_adsagu432100jhasj654321

will give me

results=[123456,654321] and not 432100

Thanks
Have a good day

© Stack Overflow or respective owner

Related posts about php

Related posts about regex