parsing routes file line by line using Regex