perlなら¥K使えば?

perl -e '"x_hoge_number=100"=~/x_.*_number=¥K¥d*/ and print $&'