I'm looking for a regular expression (or something else) library for C++ that would allow me to specify a number of patterns, run on a string and return the matching locations of all patterns.
For example: Patterns {"abcd", "abcd"} String {"abcd abce abcd"}
Result: abcd matches: 0-3, 11-14 abce matches: 5-9
Anyone know of a such a library?