fixing the regexp that captures \sections

previously it didn't capture unnumbered sections or chapters