Skip to content

support for non-fixed-width pattern look-behind #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
yangcht opened this issue Aug 2, 2024 · 1 comment
Closed

support for non-fixed-width pattern look-behind #86

yangcht opened this issue Aug 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@yangcht
Copy link
Contributor

yangcht commented Aug 2, 2024

I noticed that the current default re package does not support non-fixed-width pattern look-behind.

And this feature is actually very useful and powerful to have. For example, the following is not supported by re but by regex.
(?<=\/\*(\*(?!\/)|[^*])*\*\/(\s|\S)*\n)(?!\/\*(\s|\S)*\n)(.{120,})(?!(\s(?!\/\*)|\S(?!\/\*))*\*\/\n)

Is it possible to switch the default re to the regex package, which supports such a feature? I have issued a PR for it.

@codingjoe codingjoe added the enhancement New feature or request label Aug 4, 2024
@yangcht yangcht removed their assignment Aug 7, 2024
@yangcht
Copy link
Contributor Author

yangcht commented Aug 7, 2024

sorry, clicked unassigned by mistake....

Now the PR has been split into two and ready for code review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants