Neaten the exclusion of < and > by using a regex