-1

Regex pattern need to find below url values in bold color

http://abc.com/XMLFeed?clientkey=abtc&type=Products&ProductID=111&location=145

[=**abtc**&
 =**Products**&
 =**111**&
 =**145**]
1
  • 7
    I'm voting to close this question as off-topic because it is asking for code to be written without any explanation of exactly what is wanted. It would not be a good fit for Stack Overfow or Programmers.
    – AdrianHHH
    Sep 15 '17 at 7:57
1

This regex captures all variable parameters in your url. To get the last one, simply iterate through the results.

(?<==).*?(?=&)

Demo here

1
  • Your example does not capture last value (145), you should also use capturing group top capture anything.
    – Alexey R.
    Sep 15 '17 at 15:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.