@dailychannels · Post #6799 · 07.04.2026 г., 01:00
Channel: @whale memes Members: ~1.17M 💢 Username: @whalememes Description: Whale Memes 🏷 Tags: #entertainment https://lve.to/bqpierwpzz
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #146 · 16 сеп.
Функция sub в regex может принимать функцию в качестве аргумента repl. 📄 Из документации: If repl is a function, it is called for every non-overlapping occurrence of pattern. The function takes a single match object argument, and returns the replacement string. То есть для каждого совпадения будет вызвана функция для вычисления замены вместо замены на одну и ту же строку для всех совпадений. Иными словами, для замены разных совпадений на разные строки не потребуется запускать re.sub() много раз для каждой строки замены. Достаточно определить функцию, которая вернёт строку для каждого из совпадений. Описание слишком запутанное🤔, давайте лучше рассмотрим на простом примере: Создаем карту замены. То есть какие строки на какие требуется менять. remap = { 'раз': '1', 'два': '2', 'три': '3', 'четыре': '4', 'пять': '5', } Пишем функцию поиска строки для замены. Единственным аргументом будет объект re.Match. Используя данные этого объекта мы вычисляем замену on-the-fly! def get_str(match: re.Match): word = match.group(1) return remap.get(word.lower()) or word Пример текста. text = '''Раз Два Три Четыре Пять Вместе будем мы считать Пять Четыре Три Два Раз Мы считать научим вас ''' Теперь запускаем re.sub и вместо строки замены (repl) подаём имя функции. (Данный паттерн ищет отдельные слова в тексте) >>> print(re.sub(r'(\w+)', get_str, text)) 1 2 3 4 5 Вместе будем мы считать 5 4 3 2 1 Мы считать научим вас Думаю, достаточно наглядно 🤓 #libs#regex
Пребарај: #entertainment
@dailychannels · Post #6799 · 07.04.2026 г., 01:00
Channel: @whale memes Members: ~1.17M 💢 Username: @whalememes Description: Whale Memes 🏷 Tags: #entertainment https://lve.to/bqpierwpzz
Hashtags
@dailychannels · Post #6776 · 27.03.2026 г., 13:00
Channel: 9GAG Members: ~17.28K 💢 Username: @rugag Description: For fun sakes... ___$$$===MEMS===$$$___ 🏷 Tags: #entertainment https://lve.to/f1kikaw5ff
Hashtags
@dailychannels · Post #6720 · 03.03.2026 г., 01:00
Channel: MEME WAR Members: ~12.31K 💢 Username: @memewar24 Description: JOIN AND SHARE TO BE ON THE WINNING SIDE 🏷 Tags: #entertainment https://lve.to/8vxbfbiuoi
Hashtags
@dailychannels · Post #6617 · 17.01.2026 г., 13:00
Channel: Spicy Steamed Memeballs Members: ~18.01K 💢 Username: @memes_mf Description: Strictly Satire. EST 2018 We don't message our subscribers.. those are scammers. 🏷 Tags: #entertainment https://telegramchannels.me/channels/memes_mf
Hashtags
@dailychannels · Post #6580 · 31.12.2025 г., 01:01
Channel: Funny Gifs Members: ~10.98K 💢 Username: @gifs_en Description: The №1 gif channel on Telegram Buy Ad: @BADitel, @Arseniy495 or https://telega.io/c/gifs_en 🏷 Tags: #entertainment https://telegramchannels.me/channels/gifs_en
Hashtags
@dailychannels · Post #6536 · 11.12.2025 г., 01:00
Channel: Chico memes™️ Members: ~121.76K 💢 Username: @chicomemes Description: #chicomemes Best Entertainment Channel on Telegram ️ 🏷 Tags: #entertainment https://telegramchannels.me/channels/chicomemes
Hashtags
@dailychannels · Post #6532 · 09.12.2025 г., 01:00
Group: Addicted Members: ~2.24K 💢 Username: @addictedgroup Description: Bun venit pe Addicted Group LINK : https://t.me/AddictedGroup Folosiți tag-ul @admin pentru a semnala o problemă. Partener : @RomaniaGroup 🏷 Tags: #entertainment https://telegramchannels.me/groups/addictedgroup
Hashtags
@dailychannels · Post #6531 · 08.12.2025 г., 13:00
Channel: Memes Funny Joker Members: ~8.31K 💢 Username: @memes_funny_joker Description: 🃏 **Memes Funny Joker** Dive into the world of humor with "Memes Funny Joker," a hub of hilarious Joker-themed memes. Join us today for a daily dose of laughter and engaging community discussions. 🏷 Tags: #entertainment https://telegramchannels.me/channels/memes_funny_joker
Hashtags
@dailychannels · Post #6421 · 19.10.2025 г., 01:00
Channel: Plantain chips Members: ~119.06K 💢 Username: @plantainchipps Description: Memes and memes only ‼️ Exceptionally entertaining channel 🏷 Tags: #entertainment https://telegramchannels.me/channels/plantainchipps
Hashtags
@dailychannels · Post #6367 · 22.09.2025 г., 01:00
Channel: The Joe Rogan Experience Members: ~8.89K 💢 Username: @jretelegram Description: Discussion group: @joeroganchats Looking for censored episodes? There you go: @JREUncensored Donations: https://t.me/JREtelegram/355 🏷 Tags: #entertainment https://telegramchannels.me/channels/jretelegram
Hashtags
@dailychannels · Post #6191 · 09.07.2025 г., 01:00
Channel: i don't know how to be funny anymore Members: ~70.88K 💢 Username: @everyone Description: terrible, terrible humor. im not going to "sponsor" any other channels here, i'll forward something if i find something funny but i'm not running this thing like a business. THAT ALSO MEANS I'M NOT SELLING IT, MORONS 🏷 Tags: #entertainment https://telegramchannels.me/channels/everyone
Hashtags
@dailychannels · Post #6139 · 15.06.2025 г., 13:00
Channel: David Avocado Wolfe Members: ~118.61K 💢 Username: @davidavocadowolfe Description: Uncensored Meme News Medical Freedom Exposing the Beast System Fresh ️Foods, Superfoods , Superherbs , Living Water, Health Technology, and #TheBestDayEver! ⬇️MyWorld & Favorite Links and Memes⬇️ 🏷 Tags: #entertainment https://telegramchannels.me/channels/davidavocadowolfe
Hashtags