Replace \\e\sc\\ap\\\\ed\\\\\ regexp strings with `rx` forms.

There's still a little more I'd like to do to clean up, but I wanted to share the first iteration. (i.e., you almost certainly shouldn't merge this stuff yet)
If you guys like this overall change, I will of course squash these commits. They're broken up the way they are to make the pull request easier to review.