两个字符之间的Powershell字符串和最后一行字符串

时间:2017-07-27 09:23:56

标签: powershell

我有这样的日志文件:

File downloaded C:\path\special_catalog\update_123_132_2.0\firmware.zip foo-bar2.0 status=success
File downloaded C:\path\special_catalog\update_123_132_3.0\firmware.zip foo-bar3.0 status=success
File downloaded C:\path\special_catalog\update_123_132_3.0\firmware.zip foo-bar3.0 status=success

我需要哪个正则表达式获得每行的“update_123_132_2.0”和“status = success”?我对“update_123_132_2.0”没有问题,因为它是special_catalog \和\ firmware之间的字符串,但是如何添加到“status = success”?

0 个答案:

没有答案