Multiple format reading using regexp