^\\documentclass(?:\[[^\]]*\])?\{[^}]+\}.*$