regex impl. and binding