How do I remove a substring after a certain character in a string using Ruby?
I find that "Part1?Part2".split('?')[0] is easier to read.
"Part1?Part2".split('?')[0]