我正在尝试将文本文件中的以下数据拆分为两个单独的文件。一个文件应包含最后4行以= x和= newcase结尾,另一行应包含以1515开头的剩余行...任何想法都将受到赞赏
1515861=Nomura Qatar Employment Advice
1515863=Nomura Bahrain Employment Advice
1515869=GSCEC . Gozzo Impianti S.p.A. - Conference Centre Project
1517106=Exterran - General Employment Advice
OFFICE=Office=X
NEW=New Case=X
OFF=Office=X
1111111=New Case
答案 0 :(得分:0)
<body>
<div class="brdr_top"></div>
<!-- A little gold border at the top -->
<div class="header" id="banner">
<img src="http://i.imgur.com/NJJKSXh.png" id="banner_txtcombo" />
<!-- The LMUN text image -->
<img src="http://i.imgur.com/OrPKrUc.png" id="banner_logo" />
<!-- The LMUN Logo -->
</div>
<div class="header" id="navbar">
<!-- The navigation bar and contents *begins* -->
<div class="nb_item"><span id="space"></span>HOME<span id="space"></span>
</div>
<div class="nb_item">ABOUT US <span id="dArrow"></span>
<ul id="abtus_menu">
<li class="nb_item_li"><a href="http://www.lamartinierelucknow.org/" target="_blank">LA MARTINIERE COLLEGE</a>
</li>
<li class="nb_item_li">LMUN 2015</li>
<li class="nb_item_li">SECRETARIAT</li>
</ul>
</div>
<div class="nb_item"><span id="space"></span>REGISTER <span id="dArrow"></span>
<ul id="rgstr_menu">
<li class="nb_item_li">INDIVIDUAL</li>
<li class="nb_item_li">DELEGATION</li>
</ul>
</div>
<div class="nb_item"><span id="space"></span>COMMITTEES <span id="dArrow"></span>
<ul id="comt_menu">
<li class="nb_item_li">COMMITTEE 1</li>
<li class="nb_item_li">COMMITTEE 2</li>
<li class="nb_item_li">COMMITTEE 3</li>
<li class="nb_item_li">COMMITTEE 4</li>
<li class="nb_item_li">COMMITTEE 5</li>
<li class="nb_item_li">COMMITTEE 6</li>
</ul>
</div>
<div class="nb_item"><span id="space"></span>RESOURCES <span id="space">
</span>
</div>
<div class="nb_item">EVENTS <span id="dArrow"></span>
<ul id="evnt_menu">
<li class="nb_item_li">KEYNOTE SPEAKERS</li>
<li class="nb_item_li">SOCIALS</li>
</ul>
</div>
<div class="nb_item"><span id="space"></span>SPONSORS</div>
<div class="nb_item"><span id="space"></span>CONTACT US<span id="space">
</span>
</div>
</div>
</body>