Link to home
Start Free TrialLog in
Avatar of borris111698
borris111698

asked on

splitting

I have the following in a file;

<b>name1 (object1)</b><br>
<b>name2 (object2)</b><br>
<b>name3 (object3)</b><br> ...... etc

I am using a foreach control statement to extract each line, but then want to compare the name1, name2, name3 ....etc for out of the file. Each name has a varible length..

someone please help!!!
Avatar of ozo
ozo
Flag of United States of America image

while( <> ){
     ($name) = /<b>(\w+)/;
}
ASKER CERTIFIED SOLUTION
Avatar of Chris S
Chris S
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial