support "E ~ F" selector

sorry, I  have no idea where it should write test code.