mirror of
https://github.com/minoplhy/filters-converter.git
synced 2024-12-22 10:08:08 +00:00
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