在 ? 之后删除象征。 Excel 需要

Remove after the ? symbol. Needed for Excel

我只想从 https://www.choicehotels.com/georgia/decatur/quality-inn-hotels/ga908?gxt=12sadbsaj=1235\&&&* 中删除 ?gxt=12sadbsaj=1235\&&&*。我如何使用正则表达式来做到这一点?

类似于 =left(input, find("?", input))。你可能在某处需要 + 或 - 1。但这将使最左边的字符达到查找的结果,这将使字符数达到?。