"Размер экрана": 4.5 - 5"
^(4\.[5-9])|(5\.0)
/(4\.[5-9])|(5\.0)/
/^((4\.[5-9])|(5\.0))$/
var re = new RegExp('^((4\.[5-9])|(5\.0))$');
var testTrue = '4.5,4.6,4.7,4.8,4.9,5.0'.split(',');
var testFalse = '4.4,1.1,-4.5,5.1,5.2,5.5,5.6,105.0,104.6'.split(',');
var i;
for(i in testTrue) if( re.test( testTrue[i]) !== true) throw('Failed at ' + testTrue[i]);
for(i in testFalse) if( re.test( testFalse[i]) !== false) throw('Failed at ' + testFalse[i]);
"All tests passed";