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.
我有一堆带有这样条目的 JSON 数据:
"FILENAME":"/DownloadFile2.aspx?File=q%3a%5cPeople%5c1026732%5c819%5cLetters%5cAttend1026732160213.pdf",
我想用这个替换所有这些:
"FILENAME":"/DownloadFile2.aspx?File=filename.pdf",
我如何使用正则表达式来替换它们?
在搜索中,放File=.*\.pdf 在替换中,放File=filename.pdf
File=.*\.pdf
File=filename.pdf