ЕСЛИ ТЫ ЗНАЕШЬ РЕГУЛЯРКИ ЗАЙДИ СЮДЫ!Есть куча текстовых документов. В них есть 2 строчки Марфа васильеваMарфа васильевана@mail.ru:fiug4355И.тпСоответстветвенно таких марф, алек и прочих около 40 тексовых докментов.НАдо сделать так что бы он мне эти 2 строки скопировал, и отступил от последней записи в этом документе 2 сточки и снова вставил эти 2 строчки. Еще было бы хорошо пароль поменять но это анриал я думаюсам я в регулярках 0, не для моего ума. Поэтому надежда на вас.
бла блаПуся пусиевнаkviemfi@mai.com:igjig443бла блаНАдо шобе было такбла блаПуся пусиевнаkviemfi@mai.com:igjig443бла блаПуся пусиевнаkviemfi@mai.com:igjig443Желательно с чуть измененным пассом
>>217251438Давай уточним.1. Сочетание вида kviemfi@mai.com:igjig443 встречается в файле ровно 1 раз?2. Эта строка не может быть первой?3. Строчка, которая НАД этой должна быть захвачена без изменений?4. Тебе нужно именно дописать данные в этот же файл а не составить новый файл со списком этих данных.Бля, чувствую себя, будто реально ТЗ пишу?
>>217251800да 1 разэта строчка посередине документаНадо захватить мыло и верхнюю строчкуда в тот же файл тоолько ниже
О, вдруг мне помогут также как и опу тем более мне проще всеВот есть сайт с словарем https://smolsoc.ru/index.php/home/2009-12-24-13-38-54/29-2010-08-30-11-29-38/916-2011-01-18-13-06-47Надо написать регулярку чтобы оно первую запяту после начала строки и пробел после нее заменяла на символ ":" (или любой другой малораспространенный)Это нужно чтобы эти слова в словарь быстро добавитьТипа есть фрагмент:"ПОЛЕМИКА (греч.), спор в печати, на собрании по проблеме, по теме, по вопросу между двумя или несколькими ораторами."И вместо него"ПОЛЕМИКА (греч.):спор в печати, на собрании по проблеме, по теме, по вопросу между двумя или несколькими ораторами."Если кто поможет могу подсказать как эти термины выучить легко
>>217252392Долбоеб, как можно быть таким тупым чтобы не понять, что тебе нужно заменять ")," на "):" ? Для надежности можешь заменять ".)," на ".):"
>>217252628Это нужно делать только в первом совпадении с новой строкой а не во всем тексте. Т.е. только один раз после начала новой строки
>>217250116 (OP)При чем тут вообще регулярки? У тебя уже всё разделено переносом строки и двоеточием.
>>217250116 (OP)На, пробуй, советую начать с копий, ибо переписывает оригиналhttps://pastebin.com/dbQHMY87
>>217259226их там 40, а может и больше. Это ебануться. Нужна регулярка>>217258975какая разница то?432434ааапкп4234кпПуся пусиевнаkviemfi@mai.com:igjig44334545ппо67оглре657567НАдо шобе было так432434ааапкп4234кпПуся пусиевнаkviemfi@mai.com:igjig44334545ппо67оглре657567Пуся пусиевнаkviemfi@mai.com:igjig443Желательно с чуть измененным пассом
>>217259775мне нужна регуляка которая возьмет мыло, и выше строчку на ней имяПуся пусиевнаkviemfi@mai.com:igjig443и вствавит ее в конец, отступив 2 строчки. Еще бы пасс изменить, но это наверное анриал
>>217259967Типа того?былоProfessor Klaus Püschel, head of forensic medicine in Hamburg, explains about Covid19: „This virus influences our lives in a completely excessive way. This is disproportionate to the danger posed by the virus. And the astronomical economic damage now being caused is not commensurate with the danger posed by the virus. I am convinced that the Corona mortality rate will not even show up as a peak in annual mortality.“ In Hamburg, for example, „not a single person who was not previously ill“ had died of the virus: „All those we have examined so far had cancer, a chronic lung disease, were heavy smokers or severely obese, suffered from diabetes or had a cardiovascular disease. The virus was the last straw that broke the camel’s back, so to speak. „Covid-19 is a fatal disease only in exceptional cases, but in most cases it is a predominantly harmless viral infection.“In addition, Dr. Püschel explains: „In quite a few cases, we have also found that the current corona infection has nothing whatsoever to do with the fatal outcome because other causes of death are present, for example a brain haemorrhage or a heart attack. Corona in itself is a „not particularly dangerous viral disease“, says the forensic scientist. He pleads for statistics based Пуся пусиевнаkviemfi@mai.com:igjig443 that have not been expertly examined only fuel anxiety.“ Contrary to the guidelines of the Robert Koch Institute, Hamburg had recently started to differentiate between deaths „with the“ and „by the“ coronavirus, which led to a decrease in Covid19 deathsсталоProfessor Klaus Püschel, head of forensic medicine in Hamburg, explains about Covid19: „This virus influences our lives in a completely excessive way. This is disproportionate to the danger posed by the virus. And the astronomical economic damage now being caused is not commensurate with the danger posed by the virus. I am convinced that the Corona mortality rate will not even show up as a peak in annual mortality.“ In Hamburg, for example, „not a single person who was not previously ill“ had died of the virus: „All those we have examined so far had cancer, a chronic lung disease, were heavy smokers or severely obese, suffered from diabetes or had a cardiovascular disease. The virus was the last straw that broke the camel’s back, so to speak. „Covid-19 is a fatal disease only in exceptional cases, but in most cases it is a predominantly harmless viral infection.“In addition, Dr. Püschel explains: „In quite a few cases, we have also found that the current corona infection has nothing whatsoever to do with the fatal outcome because other causes of death are present, for example a brain haemorrhage or a heart attack. Corona in itself is a „not particularly dangerous viral disease“, says the forensic scientist. He pleads for statistics based Пуся пусиевнаkviemfi@mai.com:igjig443 that have not been expertly examined only fuel anxiety.“ Contrary to the guidelines of the Robert Koch Institute, Hamburg had recently started to differentiate between deaths „with the“ and „by the“ coronavirus, which led to a decrease in Covid19 deaths.Пуся пусиевнаkviemfi@mai.com:igjig443И в файле больше нет других пусей пусиевн, по одной на файл?
Вместо регулярок лучше использовать питон. Он надёжнее, так как в нём реализована технология XSS-иньекций.