In ruby, I'm trying to replace the below url's bolded portion with new numbers:
/ShowForum-g1-i12105-o20-TripAdvisor_Support.html
How would I target and replace the -o20- with -o30- or -o40- or -o1200- while leaving the rest of the url intact? The urls could be anything, but I'd like to be able to find this exact pattern of -o20- and replace it with whatever number I want.
Thank you in advance.