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

TGINSIGHT SIMILAR POSTS

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

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

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

Резултати

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

Пребарај: #interestingfacts

当前筛选 #interestingfacts清除筛选

🐊 Henry the Nile Crocodile — a Living Legend of South Africa Henry, the world’s oldest known crocodile, lives at the Crocworld Conservation Centre in Scottburgh, KwaZulu-Natal 🇿🇦 🗓 Born on December 16, 1900, in Botswana, Henry gained notoriety in the early 20th century for preying on local children before being captured in 1903. Today, he is a beloved attraction and a true icon of the conservation center 💚 Over his lifetime, Henry has fathered more than 10,000 offspring with six mates! 📏 Length: 16 feet (4.9 m) ⚖️ Weight: around 1,540 lbs (700 kg) Henry’s extraordinary longevity and fertility highlight the resilience of Nile crocodiles and the importance of wildlife conservation efforts🌍 🔗 Source: Times of India 📹 Video: https://t.me/NationGeographic/9647 #Nature#SouthAfrica#Wildlife#Crocodiles#Conservation#InterestingFacts

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40436 · 30.12.2025 г., 03:04

Bobby Farrell from Boney M., known for the song "Rasputin," died on December 30 in St. Petersburg. Grigori Rasputin, the song’s subject, also died on December 30 in St. Petersburg, but in 1916. We send the song at the same time of this post, We hope you enjoy it. Feel free to add more Boney M music in the comments. 😉 [Read more] [Read more] [Read more&source pic] @googlefactss #BobbyFarrell🎤#BoneyM🎶#Rasputin#HistoryFacts📜#InterestingFacts