Script to regex extract metadata from book files