Bug 16592 - Syntax error: Too many bracketed closures (limit is 10)
Syntax error: Too many bracketed closures (limit is 10)
Product: Regexp
Classification: Unclassified
Component: Other
PC Linux
: P3 major (vote)
: ---
Assigned To: Jakarta Notifications Mailing List
Depends on:
  Show dependency tree
Reported: 2003-01-30 12:18 UTC by Kai Bartels
Modified: 2004-11-16 19:05 UTC (History)
0 users

proposed patch to RECompiler.java (2.50 KB, patch)
2003-02-03 15:06 UTC, Kai Bartels
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Bartels 2003-01-30 12:18:52 UTC
I'm trying to construct a RE that detects valid date/datetime/time inputs. I
easily hit the above limit in doing so (all brackets needed for grouping!).
Is a hard coded limit really neccessary here?
Pls. remove it or add a parameter the the RE constructor to increase the limit
when neded. Thanx.
Comment 1 Kai Bartels 2003-02-03 15:06:25 UTC
Created attachment 4685 [details]
proposed patch to RECompiler.java
Comment 2 Kai Bartels 2003-02-03 15:07:58 UTC
Ok, had a look myself. The number of {n,m} expressions is limited. I just
attached a patch to this report that works for me.
Comment 3 Vadim Gritsenko 2003-05-02 02:30:57 UTC
patch applied, thanks.
Comment 4 Vadim Gritsenko 2003-05-02 02:31:08 UTC