I want to print a regular expression in table's column. For example:
\begin{table}[position specifier]
\begin{center}
\begin{tabular}{ c | c }
\hline
comand & regex \\
\hline
HELO & ^\s*HELO\s+(\S+)\s*$ \\
\hline
\end{tabular}
\label{tab:smtp}
\end{center}
\end{table}
But, I have a lot of errors due to ^\s*HELO\s+(\S+)\s*$. So, what does the simplest way to escape this regex?
EDIT:
I do not have enough reputation to ask to my own question. So the most suitable solution is to use \verb comand.