Debian Codegraph @

debian/control

raw symbols SCIP
1 Source: re2j
2 Maintainer: Debian Java Maintainers <[email protected]>
3 Uploaders: Vincent Prat <[email protected]>
4 Section: libs
5 Priority: optional
6 Build-Depends: debhelper (>= 13),
7 debhelper-compat (= 13),
8 gradle-debian-helper,
9 libicu4j-java,
10 libjavapoet-java,
11 maven-repo-helper
12 Standards-Version: 4.6.1
13 Vcs-Browser: https://salsa.debian.org/java-team/re2j
14 Vcs-Git: https://salsa.debian.org/java-team/re2j.git
15 Homepage: https://github.com/google/re2j
16 Rules-Requires-Root: no
17
18 Package: libre2j-java
19 Architecture: all
20 Multi-Arch: foreign
21 Section: java
22 Depends: ${shlibs:Depends},
23 ${misc:Depends},
24 ${java:Depends}
25 Description: RE2/J: linear time regular expression matching in Java
26 RE2 is a regular expression engine that runs in time linear in the size of the
27 input. RE2/J is a port of RE2 to pure Java.
28 .
29 Java's standard regular expression package, java.util.regex, and many other
30 widely used regular expression packages such as PCRE, Perl and Python use a
31 backtracking implementation strategy: when a pattern presents two alternatives
32 such as a|b, the engine will try to match subpattern a first, and if that
33 yields no match, it will reset the input stream and try to match b instead.
34 .
35 If such choices are deeply nested, this strategy requires an exponential
36 number of passes over the input data before it can detect whether the input
37 matches. If the input is large, it is easy to construct a pattern whose
38 running time would exceed the lifetime of the universe. This creates a
39 security risk when accepting regular expression patterns from untrusted
40 sources, such as users of a web application.
41 .
42 In contrast, the RE2 algorithm explores all matches simultaneously in a single
43 pass over the input data by using a nondeterministic finite automaton.
44 .
45 There are certain features of PCRE or Perl regular expressions that cannot be
46 implemented in linear time, for example, backreferences, but the vast majority
47 of regular expressions patterns in practice avoid such features.