in reply to match n EMth/EM occurence
/^((?:[^c]*c){n-1}[^c]*)c/ [download]
(Edit: Corion winds up with the same solution up above but this is slightly more efficient since the inner () don't need to be capturing)