Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在文本中有一堆“id”代码 - 我想全部选择它们并删除:
... id="S60K141" ... id="Z80Y144" ... id="V60O175" ...
什么都换id="[A-Z0-9]{7}"。
id="[A-Z0-9]{7}"
尸检:
id="
[A-Z0-9]{7}
A
Z
0
9
"
按CTRL + H打开替换框,打开正则表达式,然后用空字符串替换。
CTRL + H
id=".*?"