Isn't ```/^#{P}/``` simpler?