Comments (7)
The capture numbers are expressed in a bytecode as short int.
from oniguruma.
Can this be expanded to 64 bit and this limit made consistent with the limit typedef?
from oniguruma.
Is it typedef short int MemNumType;
?
from oniguruma.
I'm really curious about your usage.
What do you want to use such many capturing groups for?
Isn't it enough using non-capturing groups (?:foobar)
?
from oniguruma.
I use rather large regular expressions to find certain terms in texts. There are a lot of terms, lists can be arbitrarily large.
It works fine, except it hits this limit.
So I suggest you increase the limit, so that nobody has to hit it again. 16-bit vs. 32-bit field doesn't really save much performance-wise. Also please make the limit consistent with the data type.
from oniguruma.
I have updated develop branch.
NEW API: onig_set_capture_num_limit()
This is experimental and may put it back when my feeling changes.
Default capture number limit (32767) is not changed.
Call onig_set_capture_num_limit(0) to be unlimited.
from oniguruma.
Thanks!
from oniguruma.
Related Issues (20)
- Potential null pointer dereference in regparse.c
- [[:punct:]] isn't matching all expected symbols HOT 6
- Checking for Whole Text Matches HOT 2
- [6.9.4] build failure on armhf HOT 1
- Documentation of onig_name_to_group_numbers is incorrect HOT 1
- ( /sample/callout.c ) Callouts of contents in if-then-else HOT 2
- 0-infinite quantifier inside lookbehind causes catastrophic backtracking HOT 5
- Internal `^` and `$` don't match as characters for GREP and POSIX_BASIC syntax HOT 4
- add oniguruma-devel to centos8.0+ HOT 2
- Dynamic library generated failed to support "(?-i)" HOT 3
- oniguruma not able to installed on PPC64le architecture HOT 3
- `.{0,99}` and `.*` behave differently on short input HOT 2
- mbc_enc_len(const UChar* p) to be improved HOT 4
- Does Oniguruma support POSIX collating symbols or equivalence classes? HOT 1
- New version?🤔 HOT 1
- Does "retry-limit-in-match over" mean NOT MATCH? HOT 13
- ONIG_SYN_CONTEXT_INDEP_REPEAT_OPS not working for ^* pattern HOT 1
- Literal escaped braces HOT 2
- what is escape code for `.` (literal dot)? HOT 1
- onig_match() can return wrong results with lookbehind at the end of the string HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oniguruma.