給出以下兩行字符串,例如:正則表達式:從字符串|中提取3個特定數字例如
May 22 00:46:38.340 prod-lab03c-rd1 fpc4 XETH(4/2): %PFE-6: Link 0 XFP: Low Rx power warning set
[May 24 11:24:28.299 LOG: Notice] MIC(0/1) link 1 SFP receive power low warning set
我想在3個變量以下數字存儲:
[1] the 1st number after the "(", it could be 1 or more digits
[2] the 1st number after the "/", it could be 1 or more digits
[3] the first number after the "(L|l)ink" word, it could be 1 or more digits
請你幫我在這嗎?
千恩萬謝
什麼你在用什麼語言? – buckley
SLAX是我正在使用的語言 – user690182