I want to find anything that comes after s= and before & or the end of the string. For example, if the string is
s=
&
t=qwert
\bs=([^&]+) and grabbing $1should be good enough, no?
\bs=([^&]+)
$1
edit: added word anchor! Otherwise it would also match for herpies, dongles...
herpies
dongles