add new regex rules

This commit is contained in:
gently 2020-07-26 23:24:29 +08:00
parent 0ed181a02b
commit e2a25d240a
2 changed files with 7 additions and 24 deletions

View File

@ -1,7 +1,7 @@
!TITLE=anti-AD
!VER=20200726225412
!VER=20200726232322
!URL=https://github.com/privacy-protection-tools/anti-AD
!TOTAL_LINES=34897
!TOTAL_LINES=34879
||*.wap.xsbiquge.com^
||*serror*.wo.com.cn^
||201*.myhard.com^
@ -10310,18 +10310,7 @@
||e521d17fa185a2.com^
||e647ob.cn^
||e6cfmdmo81.com^
||e7001.com^
||e7002.com^
||e7009.com^
||e701.net^
||e70123.com^
||e7015.com^
||e703.net^
||e704.net^
||e705.net^
||e706.net^
||e708.net^
||e719.net^
/^(\S+\.)?e7[0-9]{2,4}\.(net|com)?$/
||e7is2u38.top^
||e8934fbbed0495.com^
||e960e146d9b5ca.com^
@ -12423,22 +12412,15 @@
||g-content.bid^
||g-statistic.com^
||xyoss.g.com.cn^
||g1341551423.com^
/^(\S+\.)?g[1-4][0-9]{8,9}\.com?$/
||g17media.com^
||g1c5.com^
||g1dxj6q1qfl2.com^
||g1f5.com^
||g1thub.com^
||g2247755016.com^
||g22rbb7.com^
||g2440001011.com^
||g2526721279.com^
||g2546417787.com^
||g27zkdvsxl.com^
||g2921554487.com^
||g2afse.com^
||g3369554495.com^
||g344530742.com^
||g35.cc^
||g3ao2q.cn^
||g3j2wzmon8b.com^

View File

@ -106,6 +106,8 @@ $ARR_REGEX_LIST = array(
'/^(\S+\.)?ali2[a-z]\.xyz$/' => null, //连号
'/^(\S+\.)?777\-?partners?\.(net|com)$/' => null, //组合
'/^(\S+\.)?voyage-prive\.[a-z]+(\.uk)?$/' => null, //组合
'/^(\S+\.)?e7[0-9]{2,4}\.(net|com)?$/' => null, //组合
'/^(\S+\.)?g[1-4][0-9]{8,9}\.com?$/' => null, //批量组合
// '/^(\S+\.)?(?=.*[a-f].*\.com$)(?=.*\d.*\.com$)[a-f0-9]{15,}\.com$/' => null,
);
@ -234,7 +236,6 @@ while(!feof($src_fp)){
}
foreach($arr_wild_src as $core_str => $wild_row){
// $match_rule = str_replace('*', '.*', $core_str);
$match_rule = str_replace(array('.', '*'), array('\\.', '.*'), $core_str);
if(!array_key_exists($core_str, $wrote_wild)){
$written_size += fwrite($new_fp, "||${core_str}^\n");