1--TEST-- 2Bug #79846 (8c67c166996 broke simple regexp) 3--FILE-- 4<?php 5$item = "component_phase_1"; 6preg_match("/([a-z]+_[a-z]+_*[a-z]+)_?(\d+)?/", $item, $match); 7var_dump($match); 8?> 9--EXPECT-- 10array(3) { 11 [0]=> 12 string(17) "component_phase_1" 13 [1]=> 14 string(15) "component_phase" 15 [2]=> 16 string(1) "1" 17} 18