Google\’s RE2 regular expression library

Image via CrunchBase


Google has announced the release of its RE2 library under a BSDish license. \”At Google, we use regular expressions as part of the interface to many external and internal systems, including Code Search, Sawzall, and Bigtable. Those systems process large amounts of data; exponential run time would be a serious problem. On a more practical note, these are multithreaded C++ programs with fixed-size stacks: the unbounded stack usage in typical regular expression implementations leads to stack overflows and server crashes. To solve both problems, we\’ve built a new regular expression engine, called RE2, which is based on automata theory and guarantees that searches complete in linear time with respect to the size of the input and in a fixed amount of stack space.\” More information can be found on the RE2 project page.


About Amit Agarwal

2 Trackbacks on “Google\’s RE2 regular expression library”