Регулярные выражения иногда могут быть просто монструозными. Выглядеть это может крайне запутанно. Сами регэкспы и без того история непростая, а когда это длинный паттерн на несколько десятков знаков, разобрать там что-либо становится не просто.
Но на помощь приходит Python и его стремление сделать нашу жизнь проще!
В функциях регулярок можно после паттерна указывать флаги, один из которых позволяет писать паттерны более свободно. А именно, добавлять пробелы и переносы, которые будут игнорированы. В результате мы можем разбить паттерн на строки и добавить комментов.
Чтобы это сработало нужно добавить флаг re.VERBOSE. Пробелы в паттерне теперь следует указывать явно спец символами.
Согласитесь, что даже с именованными группами а таком виде регэкспа выглядит вполне сносно 😉.
#tricks#regex
🌍 Remote sensing satellites can now detect wildfire smoke plumes traveling thousands of kilometers. These space-based observations help track air quality and protect health far beyond fire zones. ✨
#remote⚡#sensing⚡#satellites⚡#airquality⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
⏸A powerful video by our students raising awareness about the dangers of air pollution.
#AirQuality#Sustainability#EcoEducation#GreenUniversity#ActNow
✉️[email protected]
☎️ +998 55 512 00 77
📍Location
🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube
Co-creation Workshop on Climate and Air Quality
💬On December 4, Green University, together with Clean Air Asia and with the support from MOEJ, hosted a workshop in Tashkent focused on developing projects to improve air quality and reduce emissions. The workshop highlighted the JCM, project idea development, and knowledge exchange with international experts.
The workshop:
⚪️Helped to explore the co-benefits of clean air and climate mitigation
🔵Introduced the Joint Crediting Mechanism (JCM) as a financing tool for low-carbon projects
🔴Developed Project Idea Notes (PINs) with city officials and experts
🟢Facilitated knowledge exchange with specialists from Japan and Asia
#GreenUniversity#AirQuality#ClimateAction#SustainableCities#CleanAirAsia#JCM#Uzbekistan#EnvironmentalLeadership
✉️[email protected]
☎️ +998 55 512 00 77
📍Location
🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube
Air Quality Assessment in Termez 2025: Toward Cleaner Air and Clearer Skies
🔴On December 16, 2025, Green University, together with UNEP and the Finnish Meteorological Institute, presented the results of the air quality assessment in Termez. The event brought together government representatives, experts, development partners, media, and civil society.
🔴The assessment, conducted at the request of the National Committee on Ecology and Climate Change of Uzbekistan, was based on data from the first automatic reference air monitoring station installed in Termez in 2024 with the support of the Zamin Foundation. The study identified key pollution sources and provided science-based recommendations to improve air quality.
🔴The discussion also covered new air quality management strategies, including the work of Uzhydromet and youth-focused environmental initiatives by the Zamin Foundation.
#AirQuality#CleanAir#Termez#Uzbekistan#GreenUniversity#UNEP#FMI#ClimateAction#EnvironmentalProtection
✉️[email protected]
☎️ +998 55 512 00 77
📍Location
🌐Website | 📱Telegram | 📱Instagram | 📱LinkedIn | 🟥YouTube