Fixed regex used to identify inheritance