nelly1
Junior Member level 3
hallo all,
I wanna write perl to achieve:
find all keywords in the text, and save the lines with keywords into string,then spilt, save the first column to array.
for example,
keywords: nmos
text:
M0 (net1 net2 0 0) nmos
M1 (net2 net3) pmos
M2 (net4 net5 0) nmos
finally, i wanna a array_nmos which contain M0 M2
thanks a lot!!
I wanna write perl to achieve:
find all keywords in the text, and save the lines with keywords into string,then spilt, save the first column to array.
for example,
keywords: nmos
text:
M0 (net1 net2 0 0) nmos
M1 (net2 net3) pmos
M2 (net4 net5 0) nmos
finally, i wanna a array_nmos which contain M0 M2
thanks a lot!!