将特定 URL 替换为空值

Replace specific URL with a null value

我想替换 URL 如果它的 https://en.wikipedia.org/wiki/0/ 替换为 "null"

       url goto={{!col4}}
       ADD !EXTRACT {{!col4}}
       TAG POS=1 TYPE=SPAN ATTR=CLASS:value<SP>block<SP>dark-gray EXTRACT=TXT
       TAG POS=2 TYPE=SPAN ATTR=CLASS:value<SP>block<SP>dark-gray EXTRACT=TXT 
       TAG POS=1 TYPE=SPAN ATTR=CLASS:value EXTRACT=TXT
       SET !EXTRACT EVAL({{!EXTRACT}}'.replace(/https://en.wikipedia.org/wiki/0//g, '').replace(/\[EXTRACT\]/g, 'null');")
       wait seconds=3
       SAVEAS TYPE=EXTRACT FOLDER=* FILE=test3.csv

试过上面的代码但对我不起作用

尝试以下方式:

url goto={{!col4}}
ADD !EXTRACT EVAL("'{{!URLCURRENT}}' == 'https://en.wikipedia.org/wiki/0/' ? 'null' : '{{!URLCURRENT}}';")
TAG POS=1 TYPE=SPAN ATTR=CLASS:value<SP>block<SP>dark-gray EXTRACT=TXT
TAG POS=2 TYPE=SPAN ATTR=CLASS:value<SP>block<SP>dark-gray EXTRACT=TXT 
TAG POS=1 TYPE=SPAN ATTR=CLASS:value EXTRACT=TXT
wait seconds=3
SAVEAS TYPE=EXTRACT FOLDER=* FILE=test3.csv