TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #72 · 21 апр.

Регулярные выражения иногда могут быть просто монструозными. Выглядеть это может крайне запутанно. Сами регэкспы и без того история непростая, а когда это длинный паттерн на несколько десятков знаков, разобрать там что-либо становится не просто. Но на помощь приходит Python и его стремление сделать нашу жизнь проще! В функциях регулярок можно после паттерна указывать флаги, один из которых позволяет писать паттерны более свободно. А именно, добавлять пробелы и переносы, которые будут игнорированы. В результате мы можем разбить паттерн на строки и добавить комментов. Чтобы это сработало нужно добавить флаг re.VERBOSE. Пробелы в паттерне теперь следует указывать явно спец символами. Согласитесь, что даже с именованными группами а таком виде регэкспа выглядит вполне сносно 😉. #tricks#regex

Резултати

Пронајдени 1 слични објави

Пребарај: #rehabilitation

当前筛选 #rehabilitation清除筛选
Addis Standard

@addisstandardeng · Post #21691 · 12.03.2026 г., 12:31

News: #Rehabilitation Commission claims hundreds ‘Army 70’ fighters join DDR; #Tigray security bureau pushes back #Ethiopia’s National Rehabilitation Commission said more than 500 former fighters “linked to the Tigray People’s Liberation Front’s” so-called “Army 70,” previously stationed near the #Sudanese border, have “entered” the government’s Disarmament, Demobilization, and Reintegration program (#DDR) at a temporary processing center in #Awash_Arba. The claim was met with pushback from the Tigray Security Bureau, which disputed the commission’s characterization of the fighters and their entry into the DDR process. The Bureau called the news “misleading” and said it was made “without the knowledge” of its Tigray office. In a statement, the bureau described the Commission’s claim as “a sour joke” and accused the federal government of bypassing the legal signatories of the Pretoria Peace Agreement by engaging fighters individually to join the DDR process.... Read more: https://addisstandard.com/?p=55777