My string is as follows:
\questao{1}
\begin{enumerate}
todos os tipos de caracteres
\end{enumerate}
\begin{enumerate} -------> APENAS este deve dar match
todos os tipos de caracteres
\end{enumerate}
\questao{2}
I'm trying to make a regex that can identify ONLY the first occurrence of \begin{enumerate}
BEFORE each \questao
.
I broke my head, but the most I got was the match in the first \begin{enumerate}
when there was nothing between it and \questao
. But in the case I need, it will have some lines filled below \ begin {enumerate}.