Fixed mistake in regex matching