Menu

#21 variable length element within a lookbehind assertion

open
nobody
None
5
2006-10-24
2006-10-24
Liang Zhang
No

firstly, i know it's not a real bug, because i found in
the source code it is the expected behaviour. but in a
lot of other regular expression libraries, this kind of
regular expression is well supported, so why just
jregex doesn't support this feature?
i test this kind of regex, and it failed with a
PatternSyntaxException "variable length element within
a lookbehind assertion":
(?<=AA.{10}).*\r\n
what is the consideration of this kind of design? and
can it be supported in latter versions?
thanks a lot

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.