Added method GetRangesByLines(Regex regex)