Hello, everyone! I'm quite new to regular expressions, but I like them, A LOT!
Call me nitpicky if you will, but I'd really like to know if I should avoid using lookaheads and lookbehinds if I have an option.
For example, the two commands below do the same thing, one uses lookbehind and the other doesn't.
the_str = Regex.Replace(the_str, @"(;|!|\?) \.{3}", "$1...");
the_str = Regex.Replace(the_str, @"(?<=(;|!|\?)) \.{3}", "...");
Which one would you use? Which is more efficient?
Thanks for your answers!