Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Replace regex with re#43310

Open
Rocketknight1 wants to merge 3 commits into
mainfrom
replace_regex_with_re
Open

Replace regex with re#43310
Rocketknight1 wants to merge 3 commits into
mainfrom
replace_regex_with_re

Conversation

@Rocketknight1

@Rocketknight1 Rocketknight1 commented Jan 15, 2026

Copy link
Copy Markdown
Member

As the title says, this replaces import regex as re with import re. Most of this has already been done, but this cleans out the last of it. It also fixes one case where we were using possessive quantifiers that only work in 3.11, enabling us to remove regex there too.

Aside from general cleanup, the main reason to do this is that regex segfaults in Py3.14's free-threading mode, and it'd be nice if we were able to support that!

@Rocketknight1 Rocketknight1 marked this pull request as ready for review January 15, 2026 18:07
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@github-actions

Copy link
Copy Markdown
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: bertweet, blenderbot_small, clvp, ctrl, deepseek_vl, deepseek_vl_hybrid, depth_pro, fastspeech2_conformer, got_ocr2, gpt_oss, mllama, pixtral, recurrent_gemma, sam3, sam3_video, switch_transformers

@github-actions

Copy link
Copy Markdown
Contributor

View the CircleCI Test Summary for this PR:

https://huggingface.co/spaces/transformers-community/circle-ci-viz?pr=43310&sha=2cf127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants