Use regex for parsing