I'm describing regular expressions, and I would like to have items like this:
\documentclass[10pt,hyperref={pdfpagelabels=false}]{beamer}
\usepackage[utf8x]{inputenc}
\usepackage{default}
\mode<presentation>
{
\usetheme{Warsaw}
\setbeamertemplate{background canvas}[vertical shading][bottom=white!10,top=blue!10]
\setbeamercovered{transparent}
}
\usepackage[brazil]{babel}
\usepackage[T1]{fontenc}
\usepackage[scaled=.80]{helvet}
\usepackage{graphicx}
\setbeamertemplate{caption}[numbered]
\begin{document}
\section{Search}
\subsection{Regular Exp}
\begin{frame}[allowframebreaks]{\texttt{Regular Expressions} Operators}{Powerfull}
\texttt{Regular Expressions} (\texttt{RE}) are good:
\begin{description}
\item[\textasciicircum] Matches the beginning of the line
\item[\textbackslash] Escape character
\item[[]] Group characters
\item[\textbackslash( \textbackslash)] Hell
\item[$\textbackslash< \textbackslash> $] Hey.
% \item[{$[:\mathtt{upper}:]$}] Same as $[A-Z]$.
\end{description}
\end{frame}
\end{document}
But some of them seem not to work. Some variants I've tried (with ] outside math) gave me half of the item in the correct font/color, and the last char ] in black as if it was normal text.
Please, how can I get this done?
-- Edited: minimal working example added.

\item[{$[:\mathtt{upper}]$}]. In other words, use braces{...}around optional arguments containing brackets[...]. However you don't need math mode. – egreg Apr 07 '12 at 13:34\item[{$[:\mathtt{upper}:]$}] ha!, but I got<blue>[:upper:<\blue> <black>] ha!]<\black>. Very strange, isn't it? – DrBeco Apr 07 '12 at 13:40<blue>and<black>tags stand for? – egreg Apr 07 '12 at 13:49\documentclass[10pt,hyperref={pdfpagelabels=false}]{beamer}– DrBeco Apr 07 '12 at 14:05\listfilesbefore\documentclassand in the log-file you will see all packages with version. I am using ubuntu with TeX Live 2011. I suppose you are using TeX Live 2009. – Marco Daniel Apr 07 '12 at 15:00