« first day (5 days earlier)    last day (15 days later) » 

11:48 AM
!freeze
I intend to provide answer to linked question, but I'm low on free time. Maybe somewhere during next week.
For now, notice that last regex will not produce what you expect. It should be either ([^-]*).* or (.*?)-.*.
Otherwise, it is correct. Regarding performance, I doubt that it can be increased significantly, because you have quite a bit of logic in this query, and logical operations are inherently slow :(
@Cyberwiz ^
 

« first day (5 days earlier)    last day (15 days later) »