local p = {} function p.main( frame ) local text = mw.ustring.gsub('one (two) (three)', '%s+%b()$', '', 1) return text end return p