Convert complex regular expressions into readable Python code with Pregex
Templates like [a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,} look intimidating and are hard to read. It's challenging for a team without experience in regular expressions to understand and modify such validations.
Pregex converts regular expressions into clear Python code from descriptive components.
What you get:
• The code itself explains the intent, even without comments
• You can modify it without knowledge of regular expressions
• You can compose patterns for complex validation
• If necessary, you can export it back to a regular regex
The tool is open source. Installation:
Full article: https://bit.ly/3IWAE5O
Run this code: https://bit.ly/4hdQjKM
👉 @codeprogrammer
Templates like [a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,} look intimidating and are hard to read. It's challenging for a team without experience in regular expressions to understand and modify such validations.
Pregex converts regular expressions into clear Python code from descriptive components.
What you get:
• The code itself explains the intent, even without comments
• You can modify it without knowledge of regular expressions
• You can compose patterns for complex validation
• If necessary, you can export it back to a regular regex
The tool is open source. Installation:
pip install pregexFull article: https://bit.ly/3IWAE5O
Run this code: https://bit.ly/4hdQjKM
Please open Telegram to view this post
VIEW IN TELEGRAM
❤4👍1
Forwarded from Data Science Jupyter Notebooks
Create a perfect resume without messing with templates.
You write content in YAML and generate a PDF.
The project is called RenderCV, and it's open-source
https://github.com/rendercv/rendercv
👉 https://t.iss.one/DataScienceN
You write content in YAML and generate a PDF.
The project is called RenderCV, and it's open-source
https://github.com/rendercv/rendercv
Please open Telegram to view this post
VIEW IN TELEGRAM
❤11🔥1
Forwarded from Code With Python
Checking the reliability of a password with Python!
Sometimes you need to quickly check how secure a password is. Let's look at a simple example using regular expressions - a good opportunity to practice with
Import the module:
Create a password check function:
Check a few examples:
Output example:
🔥 Example of how to check a string for compliance with several conditions using code - and practice with regular expressions.
🚪 @DataScience4
Sometimes you need to quickly check how secure a password is. Let's look at a simple example using regular expressions - a good opportunity to practice with
re and conditional logic.Import the module:
import re
Create a password check function:
def check_password_strength(password):
length = len(password) >= 8
upper = re.search(r"[A-Z]", password)
lower = re.search(r"[a-z]", password)
digit = re.search(r"\d", password)
special = re.search(r"[@$!%*?&]", password)
if all([length, upper, lower, digit, special]):
return "✅ Reliable password"
else:
return "⚠️ Weak password"
Check a few examples:
print(check_password_strength("Qwerty123"))
print(check_password_strength("Qw!8zYt@1"))Output example:
⚠️ Weak password
✅ Reliable password
🔥 Example of how to check a string for compliance with several conditions using code - and practice with regular expressions.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤11👍1
Кринжовые танцы, снег, пародия на Стекловату — полный набор классного новогоднего поздравления от приложения для общения с друзьями 🎄
https://t.iss.one/blinkmap/1110
https://t.iss.one/blinkmap/1110
Telegram
Blink — карта с друзьями
мы попросили группу «ВИА Программисты» исполнить — и они реально исполнили… наше новогоднее желание 😭
ребята из команды Blink написали для вас песню про всё-всё-всё, что мы запилили в этом году: своя новая 3D-карта, звонки, люди вокруг, твой мир, игры и многое…
ребята из команды Blink написали для вас песню про всё-всё-всё, что мы запилили в этом году: своя новая 3D-карта, звонки, люди вокруг, твой мир, игры и многое…
❤1
🔍 Discover Hidden Gems on Telegram with Argo🔍Search 🔍
You’ve just missed a buzzing group, unheard songs, or breaking news scattered across Telegram — but what if it all appeared at your fingertips? Here, every keyword unlocks doors: communities, channels, music, news… no more endless scrolling or dead ends.
Feel the thrill of finding the unseen, every search a story waiting to be told. Ready to explore? 🌐
Dive into the discovery now: https://t.iss.one/ArgoSearchBot ⚡
#ad InsideAds
You’ve just missed a buzzing group, unheard songs, or breaking news scattered across Telegram — but what if it all appeared at your fingertips? Here, every keyword unlocks doors: communities, channels, music, news… no more endless scrolling or dead ends.
Feel the thrill of finding the unseen, every search a story waiting to be told. Ready to explore? 🌐
Dive into the discovery now: https://t.iss.one/ArgoSearchBot ⚡
#ad InsideAds