How to write punctuation marks only in text arrays, thus removing the entire Cyrillic alphabet and the extra punctuation tails outside?

5bbf3e37b77ec753920037.gif
Works such regularity. [A-Za-z]
It may in some text editor have the option to remove them, such as the ability to remove blank lines.
spoiler
5bbf403e2560a086855688.gif
March 12th 20 at 08:42
1 answer
March 12th 20 at 08:44
Solution
[A-Za-Eee].*
Do not tell me the English for regularoty at the same time? [A-Za-z] Your regularise, straight perfection. - electa.Aufderhar commented on March 12th 20 at 08:47
@electa.Aufderhar, [A-Za-z].*
Works like this: if there's a character in the range A-Za-z, then he all before the end of the line is removed.
So that may not work well for strings beginning with numbers, for example.
Then the best fit such regexps:
.*[A-Za-Eee].* and .*[A-Za-z].*
they completely removed the rows that contain at least one character from the range. - Bruce_Gibson30 commented on March 12th 20 at 08:50
spoiler
@Bruce_Gibson30, 5bbf469ab4a83113137203.jpeg

Thank you so much. But perhaps this regular expression transformation add extra lines in one as it does Yandex translator? Write your email PayPal, throw you Donat. - electa.Aufderhar commented on March 12th 20 at 08:53
I think you can like:
Need to fix regexps to delete another and transfer lines like this: .*[A-Za-Eee].*\r\n and .*[A-Za-z].*\r\n

Or you can remove the line breaks more than two in a row: find \r\n(\r\n)+ and replace with \r\n\r\n

* note: in Windows mode, CR LF transfer consists of two character's \r\n, but if the document you have in LF for the transfer is the only character \n, then all regexp need to remove the\r to work. Mode can be seen in the status bar at the bottom right. - Bruce_Gibson30 commented on March 12th 20 at 08:56
@electa.Aufderhar, sorry for the long answer, thanks for the offer, but I think the fact that you said the answer as a solution is enough) - Bruce_Gibson30 commented on March 12th 20 at 08:59
@Bruce_Gibson30,
spoiler
5bbf63a9b2266232990439.png
Completely stopped working for some reason. - electa.Aufderhar commented on March 12th 20 at 09:02
@electa.Aufderhar, try .*[A-Za-Eee].*(\n)? - Bruce_Gibson30 commented on March 12th 20 at 09:05
@Bruce_Gibson30,
spoiler
spoiler
5bbf67308852e536824072.gif
- electa.Aufderhar commented on March 12th 20 at 09:08
@electa.Aufderhar, and this kind of editor? - Bruce_Gibson30 commented on March 12th 20 at 09:11
@Bruce_Gibson30, Sublime Text 3 Notepad++ works the same way. - electa.Aufderhar commented on March 12th 20 at 09:14
@electa.Aufderharand tags in Notepad++. Now will look like in Sublime 3 - Bruce_Gibson30 commented on March 12th 20 at 09:17
@electa.Aufderhar, apparently superfluous empty lines have to be removed replacement \n\n(\n)+ into \n\n. But at least at the beginning and end can stay for the extra line. - Bruce_Gibson30 commented on March 12th 20 at 09:20

Find more questions by tags Text processingNotepad++Regular expressions