我正在将网页下载为文本文件,以读取特定字符串以将其分配为变量/参数,以创建输出文件名。我想知道如何查找特定字符串并将其作为包其余部分的另一个变量输出。
2015 Conforming Loan Limits
------------------------------------------------------------------------
o _Loan Limits for Calendar Year 2015--All Counties _[XLS]
</DataTools/Downloads/Documents/Conforming-Loan-Limits/FullCountyLoanLimitList2015_HERA-BASED_FINAL_FLAT.xlsx>_ ,
_[PDF]
</DataTools/Downloads/Documents/Conforming-Loan-Limits/FullCountyLoanLimitList2015_HERA-BASED_FINAL.pdf>_
o _List of 46 Counties with Increases in Loan Limits for 2015
_[XLS]
</DataTools/Downloads/Documents/Conforming-Loan-Limits/Counties_with_increases_cy2015_FLAT.xlsx>_
, _[PDF]
</DataTools/Downloads/Documents/Conforming-Loan-Limits/Counties_with_increases_cy2015.pdf>_
Previous Announced Loan Limits
------------------------------------------------------------------------
*Description* *Format*
Maximum Loan Limits for Loans (a) Acquired in Calendar Year 2014 and
(b) Originated after 9/30/2011 or Prior to 7/1/2007
[XLS]
</DataTools/Downloads/Documents/Conforming-Loan-Limits/FullCountyLoanLimitList2014_HERA-BASED_FINAL_FLAT.xls>
Maximum Loan Limits for Loans (a) Acquired in Calendar Year 2013 and
(b) Originated after 9/30/2011 or Prior to 7/1/2007
[XLS]
</DataTools/Downloads/Documents/Conforming-Loan-Limits/FullCountyLoanLimitList2013_HERA-BASED_FINAL.xls>
Maximum Loan Limits for Loans (a) Acquired in Calendar Year 2012 and
(b) Originated after 9/30/2011 or Prior to 7/1/2007
[XLS]
</DataTools/Downloads/Documents/Conforming-Loan-Limits/FullCountyLoanLimitList2012_HERA-BASED_FINAL_Z.xls>
为了更好地解释它,我在这里有一个示例网页文本。我应该搜索当前年份附加的“FullCountyLoanLimitList”(如 FullCountyLoanLimitList2015)并将整个文件名复制到文本文件中并将其分配给另一个变量,以便我可以使用 WebClient 连接下载该特定文件。
如果您需要更详细的信息来帮助我,请告诉我。
非常感谢!