.\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . .TH "KDB\-VSET" "1" "2015-11-19" "" "" . .SH "NAME" \fBkdb\-vset\fR \- Set the value of a key with a validation regular expression . .SH "SYNOPSIS" \fBkdb vset []\fR . .P Where \fBpath\fR is the path to the key the user wishes to set, \fBvalue\fR is the value the user wishes to set, and \fBregex\fR is the regular expression that should be used for validation\. . .br The optional parameter \fBmessage\fR is a user\-defined message that will be displayed when a user tries to set the key to a value that doesn\'t match the regular expression\. . .SH "DESCRIPTION" This command allows the user to set the value of a key and create a validation regular expression which future sets are checked against\. . .br This command supports regular expressions as defined in extended regular expressions\. . .br If a user tries to set a value that does not match the regular expression, a user\-defined message is returned\. . .P Note: In order for this command to work, the \fBvalidation\fR plugin must be mounted where the key resides\. . .SH "OPTIONS" . .TP \fB\-H\fR, \fB\-\-help\fR Show the man page\. . .TP \fB\-V\fR, \fB\-\-version\fR Print version info\. . .SH "EXAMPLES" To set the \fBuser/example/key\fR key to the value \fBa\fR and validate that any future sets must match the regular expression \fBa*\fR: . .br \fBkdb vset user/example/key a a+ "The value of this key must only consist of one more of the letter a"\fR . .SH "SEE ALSO" . .IP "\(bu" 4 Use \fBkdb info validation\fR to get information about the validation plugin\. . .IP "" 0