I'm trying to capture a group that has a variety of different forms.
cardType=A&Return=TruecardType=AbC321Return=False&cardType=C
My current regex is:
cardType=(?<Card Type>.*)&?
This currently captures the 2 and 3, but not in 1 as it also captures Return in that case.
If I do instead:
cardType=(?<Card Type>.*?)&
Then it correctly captures 1, but not 2 and 3.
How do I write a regex that captures it in all 3 cases?