ipy prompt does seem to be unambiguous as they avoid not to end with `:` and that will help in case like when you can select the first line without leaving the first prompt not unselected. So would you like to call `return _strip_prompts(continuation_re, continuation_re)` ?