yosii Posted April 5, 2013 Share Posted April 5, 2013 (edited) i have string like thatA11AA9AA7Aand i want to print all the number between A this need be the result1197every number is between A A234AA433AA413AA0AA222AA2456A <?php$FILE='A11AA9AA7A';preg_match_all("A"(.*)\"A", $FILE, $results);print_r($results);?> that now work pleaes help Edited April 5, 2013 by yosii Quote Link to comment https://forums.phpfreaks.com/topic/276563-help-with-regex/ Share on other sites More sharing options...
jazzman1 Posted April 5, 2013 Share Posted April 5, 2013 <?php $FILE='A11AA9AA7A'; preg_match_all('/[\d]+/', $FILE, $match); echo '<pre>'.print_r($match, true).'</pre>'; Quote Link to comment https://forums.phpfreaks.com/topic/276563-help-with-regex/#findComment-1423044 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.