v0.1.25
NOTE: v0.1.26 fixed a bug of this version; please use that instead.
What's Changed
- Updated
utils.re_extensions
:- Important: we've decided to extract
utils.re_extensions
into an independent package namedre_extensions
(presently at v0.0.3), so any future updates should be looked up in https://github.com/Chitaoji/re-extensions instead; we will stay in sync with it, however; real_findall()
now returns match objects instead of spans and groups;smart_sub()
accepts a new optional parameter calledcount=
;SmartPattern
supports [] to indicate a Unicode (str) or bytes pattern (like whatre.Pattern
does);- new regex operations
smart_split()
,smart_findall()
,line_findall()
,smart_subn()
, andsmart_fullmatch()
; - created a namespace
Smart
for all the smart operations; - bugfixes for
rsplit()
,lsplit()
, andsmart_sub()
.
- Important: we've decided to extract
- Reduced the running cost of
PyText.findall()
by taking advantage of the new regex operationline_findall()
.
Full Changelog: v0.1.24...v0.1.25