|
*停權中*
|
不好意思,又來請教大家了
<td class="MsgInstance" width="72%" colspan="2">[RESULT] Test=Luminance,Result=PASS,METRIC=LUMINANCE,Value= 102,Expected= 88-168,Bucketized_Error=0,Camera=USB2.0 Camera,Location=NotSet,Resolution= 640x480,Lux= 20<table width="100%"></table>
我手邊有份htm文件裡面有N行這樣類似的字串
我想把紅色的部分取出來
Value=, 102,Expected=, 88-168,Resolution=, 640x480,Lux=, 20
我目前使用ultraedit的perl replace
代碼:
replace what
([^()]),Value=([^()]),Expected=([^()]),([^()]),Resolution=([^()]),Lux=([^()]),([^()])
代碼:
replace with
Value=,\2,Expected=,\3.Resolution=,\5,Lux=,\6
但是一直抓不到匹配的字串,請問有沒有大師幫我解惑
或是除了ultraedit外請問sed或是有沒有其他的工具能夠辦用正則表示到把上面字串取出 
|