(Dec-15-2016, 05:10 AM)micseydel Wrote: I think a regular expression is the way to go, if you're looking for simplicity. A regex will also have the advantage of performance, having been optimized in C, and efficiency, doing the minimum string traversal and not needing to create intermediate strings.
can that be done in cases where the bounding strings or the string to extract are regular expressions, or subsets or supersets of them?
edit1:
the first (but not the only) project using this will be extracting from between constants '<' and '>'.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.