Fixed bug in regex exclude