8
I created the following expression:
"<strike>.*?</strike>"
to get all the text taxed, but due to the source code having line break (as in ex. below) is not working.
<p style="margin-top: 0; margin-bottom: 0"><a name="6"></a><strike>Art.
6º São direitos sociais a educação, a saúde, o
trabalho, o lazer, a segurança, a previdência social, a proteção à maternidade e à
infância, a assistência aos desamparados, na forma desta Constituição.</strike></p>
<p style="margin-top: 0; margin-bottom: 0">
<strike><a name="art6"></a>Art. 6<sup>o</sup> São direitos sociais a educação, a saúde, o
trabalho, a moradia, o lazer, a segurança, a previdência social, a proteção à
maternidade e à infância, a assistência aos desamparados, na forma desta
Constituição.<a href="Emendas/Emc/emc26.htm#1">(Redação dada pela Emenda
Constitucional nº 26, de 2000)</a></strike></p>
I’m using the regex
in the Notepad location++.
How do I make for the regex
also catch the line break?
This will depend on your programming language.
– fotanus
What language you are using and how you are instantiating your regular expression?
– Gabriel Gartz
I’m not using any language, but the Notepad++
– Stribus
This information is very important, because the syntax changes according to the environment you will use the regular expression.
– Gabriel Gartz
When you have an answer, post it as an answer. In this case, you have found a solution, prepare an answer explaining what the solution is and, if not naturally clear, explaining why.
– Felipe Avelar