{getFieldDecorator("testNumber", { rules: [ { required: true, type: "regexp", pattern: new RegExp(/d+/g), message: "Wrong format!" } ] })(<Input />)}