
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
āāāāāāāā README āāāāāāāā
Table of Contents āāāāāāāāāāāāāāāāā
1 rer 2 Install 3 All in one simple function
1 rer āāāāā
Regular expression in regular expression.
2 Install āāāāāāāāā
`pip install rer'
3 All in one simple function āāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāā
ā import re
ā
ā version = '1.1.2'
ā author = 'Meme Kagurazaka'
ā license = 'Public Domain'
ā
ā
ā def rer(re_string, re_group=0,
ā item_continuation=lambda _: _, list_continuation=lambda _: ,
ā re_continuation=None):
ā """rer atom
ā
ā This function use regular expression string re_string' and the group ā
re_group' (default 0) to match the data'. This will evaluates a list, ā a function
re_continuation' will apply to every match of the list,
ā a function list_continuation' will apply to the list.
list_continuation'
ā does nothing by default.
ā
ā re_continuation' applies
item_continuation' to re_group' by default. ā ā Return value is a function which can be apply to the
data'.
ā Return value can also be used as a item_continuation' or ā
list_continuation' of another rer recursively.
ā """
ā
ā if re_continuation is None:
ā re_continuation = lambda : item_continuation(.group(re_group))
ā
ā return lambda x: list_continuation(
ā [re_continuation() for _ in re.compile(re_string).finditer(x)])
āāāāā
FAQs
Regular expression in regular expression
We found that rer 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.