Great photo -- thanks for that.
Fortunately the legs are named G, I, and O. That pretty much tells me that its a three terminal regulator (or at least it's what springs to mind first).
I would wonder why to want to replace it, but, here's some stuff to so anyway:
1) measure the voltage across G and I pins. This will be a little above the output voltage (why -- it's a small device so it can't dissipate much power, so either the voltage drop across it or the current are very low. In any case, the designer will almost certainly have used the most suitable input voltage available)
2) Measure the voltage between G and O. If it is working, and the load is not excessive, this will tell you the output voltage.
3) double check that the G pin connects to what looks like ground on the board, and that I connects to what looks like some positive rail.
I don't have my SMD reference handy right now, but I suspect that "15" may match a lot of devices.
Perhaps if you can look up the specs of the SOT-23 package and confirm whether this is a SOT-23 device?