With PHP, I wanna cut out the “Integers Only” amongst the strings which are combined by “Characters” + “Integers”.
The sample Strings will be:
– AB12 ———> 12
– GJR987 ——> 987
– X28753 ——-> 28753
.. like that.
Is it the way of preg_split ? I hope it is but i don’t surely know the REGEXP for it. I only know following one but it gives strings only back.
preg_split('/\d+/',$INPUT,-1,PREG_SPLIT_OFFSET_CAPTURE);
How can i do?
You can use this:
and it will work as you can see here: http://ideone.com/Bnbgd