Pattern class added, regexp support