3 ms·
I use RE2 and currently achieve this with regular string concatenation. Do you know if they provide an API for doing this without concatenation, and if it would
by rudolf0 12y ago
I use RE2 and currently achieve this with regular string concatenation. Do you know if they provide an API for doing this without concatenation, and if it would be faster?
- koenigdavidmj 12y agoThe header file is available at https://code.google.com/p/re2/source/browse/re2/set.h https://code.google.com/p/re2/source/browse/re2/set.h , and if I recall correctly, it merges all the regexes into one DFA so that it's faster than just concatenating all your patterns into one string.
- deleted 12y ago[deleted]