Skip to content

v0.1.25

Compare
Choose a tag to compare
@Chitaoji Chitaoji released this 02 Aug 16:17
· 127 commits to main since this release
8e25c44

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 named re_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 called count=;
    • SmartPattern supports [] to indicate a Unicode (str) or bytes pattern (like what re.Pattern does);
    • new regex operations smart_split(), smart_findall(), line_findall(), smart_subn(), and smart_fullmatch();
    • created a namespace Smart for all the smart operations;
    • bugfixes for rsplit(), lsplit(), and smart_sub().
  • Reduced the running cost of PyText.findall() by taking advantage of the new regex operation line_findall().

Full Changelog: v0.1.24...v0.1.25