title: String Splitting of an URL which always changes the position of it's values in python
body: <p>I need to split an url which is changing the positions of it's values very oftenly.</p>
  <p>for example:-
  This is the url with three different positions of request token</p>
  <pre><code>01:-https://127.0.0.1/?action=login&amp;type=login&amp;status=success&amp;request_token=oCS44HJQT2ZSCGb39H76CjgXb0s2klwA
  
  02:-https://127.0.0.1/?request_token=43CbEWSxdqztXNRpb2zmypCr081eF92d&amp;action=login&amp;type=login&amp;status=success
  
  03:-https://127.0.0.1/?&amp;action=login&amp;request_token=43CbEWSxdqztXNRpb2zmypCr081eF92d&amp;type=login&amp;status=success
  </code></pre>
  <p>From thses url i need only the value of request token which comes after the '=' with an alphanumeric number like this '43CbEWSxdqztXNRpb2zmypCr081eF92d'.</p>
  <p>And to split this url i'm using this code</p>
  <pre><code>request_token = driver.current_url.split('=')[1].split('&amp;action')[0]
  </code></pre>
  <p>But it gives me error when the url is not in the specified position.</p>
  <p>So can anyone please give me a solution to this url splitting in just a single line in python and it'd be a great blessing for me from my fellow stack members.</p>
  <blockquote>
  <p>Note:- Here i'm using <code>driver.current_url</code> because i'm working in selenium to do the thing.</p>
  </blockquote>