updated regex for parsing schema files