I'm trying to capture the bellow parts from the attached log:
aff_lsr?tt_adv_id=806&tt_cid=&tt_adv_sub=b3fff3722fc6b52aedde9b86bb22bf23&tt_time=2016-04-05+16%3A08%3A18&
should capture:
● tt_adv_id
● 806
● tt_adv_sub
● b3fff3722fc6b52aedde9b86bb22bf23
● tt_time
● 2016-04-05+16%3A08%3A18
I have tried to create a regex to extract all strings which start with either “?” “&” or “=” and end with either “=” or “&”
this is the regex I have tried:
(?=[?/&/=]).*?(=)|(?=[=/&])
it ignores all parts between “=” and “&”
so the result i get is :
?tt_adv_id =
&tt_cid=
&tt_adv_sub=
&tt_time =