yosii Posted April 5, 2013 Share Posted April 5, 2013 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 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>'; Link to comment https://forums.phpfreaks.com/topic/276563-help-with-regex/#findComment-1423044 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.