I'm looking for a regex that matches the thank-you.aspx at the beginning of the string below and the ty=1 at the end. Those two components will always be the same, but all of the other information in the middle will be different. I am using the regex to look for these particular thank-you.aspx URLs in a database.
thank-you.aspx?source=302454&ve=60493&fn=TestName%20&ln=TestName&leadimportid=0&ty=1