elakiri.com/forum/newthread.php?do=newthread
මේ වගේ URL එකක parameter එකක් exists වෙලා නැද්ද කියල(eg: "do" param එක නැද්ද කියල) regex වලින් චෙක් කරන්න දන්නවද කවුරු හරි.
Last edited:
elakiri.com/forum/newthread.php?do=newthread
This regex will capture the "?do" string as a capture group.
Code:.*(\?do).*
Question is very vague to give a precise answer.
^.*\?do=(.*)$
This will get whatever after '?do=' as a capture group and you can assign it to a variable.
Then I guess you can check if there is a value or the variable is an empty string.
Code:^.*\?do=(.*)$
x = whatever after '?do='
y = list of urls
for i in y:
if i == x:
pass
else:
do something
අර කලින් උඹ දාපු එක exclude එක්ක submit කරහම වැඩේ හරි ගියා මචං. elaMe wage ekak karapan


Ela. I'm not a developer. Don't know much about coding and shit.


ela ela