0
Hi person good afternoon all right?
I have a question I’d like to know if you can assist me, please:
I have a file . txt , which contains more than 1000 lines, I need to separate the code from the text.... I explain myself better with the example :
CO123456= texto1 (Primeira Linha )
CO123457= texto2 (Segunda Linha )
CO123458= texto3 (Terceira Linha )
need to eliminate ( CO123456=
, CO123457=
and CO123458=
) that is to stay
texto1
, texto2
and texto3
.... being like this :
texto1 (Primeira Linha )
texto2 (Segunda Linha )
texto3 (Terceira Linha )
I tried to do this with " Replace " mode in Excel only I could not... because I had some lines that had many equal signs (=) so I eliminated the whole sentence.
Any suggestions?
I think with regex all right, I don’t know if Notepad supports replace with regex, but I believe it solves:
CO[0-9]{6}= ?
This assuming all codes start with CO followed by 6 numbers– Neuber Oliveira
If your question is about using Notepad++, I am sorry to inform you that this site is not the right place to post it. If, on the other hand, you wrote a code in VBA (or even use some functions in Excel) to do this, the question is already within the scope. Although you already have a potentially useful answer (for use in Excel), I voted to close as out of scope because I think your question is more in the first sense. Edit and improve by removing the reference to Notepad++ if you really want to use Excel.
– Luiz Vieira
You can open your txt by Excel and set the column delimiters of several different types, such as tab (tab), spaces, equal sign or even a fixed delimiter. Sounds like the best option. Take a look at this link here that illustrates what I said above: http://www.dhlebilling.com.br/ebilling/do/LinkExterno/importTxtExel
– Math