AdGuard, AdGuard Wildcard : Fix Regex Don't work with |http$
This commit is contained in:
parent
cc594b2024
commit
e0bddacaf1
@ -9,6 +9,8 @@ outfile = sys.argv[2]
|
||||
with open(infile) as f:
|
||||
file = f.read().split('\n')
|
||||
for i in range(len(file)):
|
||||
file[i] = sub('\|http\$..*\|..*', '', file[i])
|
||||
file[i] = sub('\|http\$..*', '', file[i])
|
||||
file[i] = sub('((\|\||\@\@\|\|)..*(\/|\*(\-|\&|banner|..))..*)|(^\|http)|(^(_|\*|&|\-|\/|\.|:|\?|\=|\;|\,|\$|\~)..*)|(..*(#|\$|\*)..*)|(^..*\$(app=|removeparam=|popup)..*)(\$..*)', '', file[i])
|
||||
#print(file)
|
||||
with open(infile, 'w') as f1:
|
||||
|
@ -9,6 +9,8 @@ outfile = sys.argv[2]
|
||||
with open(infile) as f:
|
||||
file = f.read().split('\n')
|
||||
for i in range(len(file)):
|
||||
file[i] = re.sub('\|http\$..*\|..*', '', file[i])
|
||||
file[i] = re.sub('\|http\$..*', '', file[i])
|
||||
file[i] = re.sub('((\|\||\@\@\|\|)..*(\/|\*(\-|\&|banner|..))..*)|(^\|http)|(^(_|\*|&|\-|\/|\.|:|\?|\=|\;|\,|\$|\~)..*)|(..*(#|\$|\*)..*)|(^..*\$(app=|removeparam=|popup)..*)(\$..*)', '', file[i])
|
||||
#print(file)
|
||||
with open(infile, 'w') as f1:
|
||||
|
Loading…
Reference in New Issue
Block a user