File parser uses regex for parsing