{\ttfamily kdb vset $<$path$>$ $<$value$>$ $<$regex$>$ \mbox{[}$<$message$>$\mbox{]}}

Where {\ttfamily path} is the path to the key the user wishes to set, {\ttfamily value} is the value the user wishes to set, and {\ttfamily regex} is the regular expression that should be used for validation. The optional parameter {\ttfamily message} 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.

\subsection*{D\+E\+S\+C\+R\+I\+P\+T\+I\+O\+N}

This command allows the user to set the value of a key and create a validation regular expression which future sets are checked against. This command supports regular expressions as defined in extended regular expressions. If a user tries to set a value that does not match the regular expression, a user-\/defined message is returned.

Note\+: In order for this command to work, the {\ttfamily validation} plugin must be mounted where the key resides.

\subsection*{O\+P\+T\+I\+O\+N\+S}


\begin{DoxyItemize}
\item {\ttfamily -\/\+H}, {\ttfamily -\/-\/help}\+: Show the man page.
\item {\ttfamily -\/\+V}, {\ttfamily -\/-\/version}\+: Print version info.
\item {\ttfamily -\/p}, {\ttfamily -\/-\/profile}=$<$profile$>$\+: Use a different kdb profile.
\end{DoxyItemize}

\subsection*{E\+X\+A\+M\+P\+L\+E\+S}

To set the {\ttfamily user/example/key} key to the value {\ttfamily a} and validate that any future sets must match the regular expression {\ttfamily a$\ast$}\+: {\ttfamily kdb vset user/example/key a a+ \char`\"{}\+The value of this key must only consist of one more of the letter a\char`\"{}}

For more information about regular expressions with the {\ttfamily validation} plugin see\+: {\ttfamily kdb info validation}

\subsection*{S\+E\+E A\+L\+S\+O}


\begin{DoxyItemize}
\item Use {\ttfamily kdb info validation} to get information about the validation plugin. 
\end{DoxyItemize}