Add better regex for heading retrieval as suggested by @jrfnl