One of our users made this request this morning. We sometimes have quite extensive layer lists in our projects, and he asked me how he can find and replace text (layer names) in the list. I don’t believe there is currently a way to do this, so I will submit this as a suggestion for V6.
This script is actually turning out a bit trickier than I thought if you use sub-layers. Without sub-layers it’s easy. But to maintain the parent/child relationship it’s going to take more effort to maintain that structure if replacing the name of the parent or the child (or both). I’m open to suggestions if anyone has ever tackled this before.