The cat that adopted me a short while back vomitted up last night, didnt bother with the litter tray she threw up under my desk which was okay as it is tiles, then also on the carpet, I thought I scrubbed it off, but I think I simply rubbed it into the carpet, so I threw some baking soda on it just now ,am going to vacum in a min......
I would guess it would work but the stain would still be there. Oh, I've used the white vinegar on the diarrhea stains. Equal parts white vingar and water. Apply to stain, let sit and blot up. It takes a few times but seems to do the trick. On really tough stains I'll use a laundry pretreater (shout, etc.) then use the above method.
That's Peek, I have found dog messes and kid messes are handled the same. I will try this the next time tummy trouble hits our house!