嗨,我是正则表达式的新手,我正在尝试使用它来捕获\s{2,}
垃圾中的空格,但不包括"url":"https://x.com/a/C25/XPS - Connection - May 2013.docx"
. 目前,我有一个 url 尚未编码的场景,因此它可能包含空格。
示例文本:
"startofjunk junkjunkjunkjunk","url":"https://x.com/a/C25/XPS - Connection - May 2013.docx","contentsource":"AX","returpath":null,"detailpath":"https://ax.sample.com/Rep>ositories/form.aspx?path=C25/96/99&mode=Read","detailspath2":"samplepath"
所需文字:
"startofjunk junkjunkjunkjunk","url":"https://x.com/a/C25/XPS - Connection - May 2013.docx","contentsource":"AX","returpath":null,"detailpath":"https://ax.sample.com/Rep>ositories/form.aspx?path=C25/96/99&mode=Read","detailspath2":"samplepath"
请帮忙。谢谢