script req: UV verticles set distance

working with UV i need script which align selected verticles with same distance between.
for example i have: 0—0-0 so i need: 0–0--0
vericles are already aligned X or Y. so it only need to be distributed accordingly.

can anyone write such? or any tips? (not well in programming)


it’s about UV, not mesh geometry.