I'm trying to extract the value from this string using regex but I can't seem to get it right.
string:
?Ntt=crockett%20&%20Jones&Rdm=718&searchType=simple&type=search&Ns=&N=&Nrpp=12&No=0&Nr=AND(product.active:1,NOT(record.type:Store))
I need the value of Ntt which is crockett%20&%20Jones.
The regex I have currently is:
\?Ntt=(([&%])|([^&=]))*
but this results in:
?Ntt=crockett%20&%20Jones&Rdm
How can I update my regex to produce the value I need?
&%20Jones? IF not, use[&\?]Ntt=([^&]*)&%20Jones- that's why I'm struggling to find a suitable regex