go to any, great, etc. lengths

go to any length(s)

To do whatever is necessary (to accomplish or attain something), no matter how extreme. Often used hyperbolically. I will go to any length to get an A in this class, professor—I'll clean your office, wash your car, anything! Go to any lengths you need to, just get me a reservation for this Saturday night!
See also: any, go

go to great lengths (to do something)

To put in a lot of effort, energy, or work to achieve something. We went to great lengths to ensure that this film was historically accurate. I appreciate that the tutor went to great lengths to make sure I understood the assignment
See also: go, great, length
Farlex Dictionary of Idioms.

go to any, great, etc. ˈlengths (to do something)

try very hard (to do something); do whatever is necessary: She went to great lengths to find this book. They were prepared to go to any lengths to help their son.
See also: go, length
Farlex Partner Idioms Dictionary
See also:
  • curl up and die
  • can't get over (something)
  • can't get over something
  • (one's) head on a plate/platter
  • go crazy
  • chance of a lifetime
  • everyone and their brother
  • days are numbered, one's
  • (someone's or something's) days are numbered
  • beat off