About that bug what exactly is incomprehensible? I
will
compose regex later if I'll want to (if you'll not want to fix it) or at
least submit bug report.
Comprehension is not the issue. I don't read minds and guessing wastes time.
Please provide an improved sed string. Just don't blurt out there is a bug and not
offer a proposed solution --- especially when you have the skills to do so.
Who uses weird directory names like /home/me/opt/usr/bin or /usr/bin_strange_backup?
Darrell