
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
`simpex` is a python library that simplifies the process of using regular expressions (regex).
simpex
is a python library that simplifies the process of using regular expressions (regex
). It provides custom, built-in and api-based methods to generate regex patterns, making it easier for developers to match and manipulate text data. Whether you're working with emails, URLs, phone numbers, or other patterns, simpex
has you covered.
To install simpex
, use the following command:
pip install simpex
There are three steps between you and regex pattern you want! Follow below instatructions as quick guide, please chak out wiki for comprehensive usage with examples.
from simpex.simpex import simpex
simpex
is a class, so we need to create an object with required parametric data (check wiki, for all available parameters)# creating an onject named `email`
email = simpex(['test@mail.com', 'admin@email.com', 'example@mail.co'])
custom*
, built-in
or api-based
to get regex pattern (check wiki, for all avaliable methods)# calling custom method
pattern = email.regex()
output:
print(pattern)
->^[a-z]+\@[a-z]+\.[a-z]*$
<br><br>
simpex
project, fork the repository, make your changes, and submit a pull request.FAQs
`simpex` is a python library that simplifies the process of using regular expressions (regex).
We found that simpex demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.