On selecting the red line we will end up with an outer and an inner selection of the area enclosed.
This big "hole" can be removed using an external script Remove Holes (from Selection)Remove Holes (from Selection) designed to just do that.
Also see How can I select the convex hull of an existing selection? for an example.