Fixed minor bug in regex pattern