"13400004444"=~/1{1}[2,3,4]{1}[0-9]{1}[0-9]{8}/
this expression will return index when match, else return nil
first bit will match 1 and only match one times.
the second bit will match 2 or 3 or 4, also only one times.
the third bit will match any digit in 0-9, and only match one times.
the other bits will match any digit
e.g.
13400004444==>0
22400004444==>nil
16400004444==>nil
14400004444==>0
15400004444==>nil