1 Replies - 1410 Views - Last Post: 30 November 2012 - 05:41 AM Rate Topic: -----

#1 surya1990  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 29-November 12

Read the all the word after a specific word in python

Posted 29 November 2012 - 11:31 PM

Soppose i have a data in a file new1:
========================================
<td class="cc">


<td>5555</td>

<td>P1</td>

<td class="a"><a href="show.cgi?id=5555" title="/document/Images/my_image">/document/Images/....</a></td>

</tr>


<td class="cc">
<td>6666</a>

<td>P2</td>
<td class="a"><a href="show.cgi?id=6666" title="/doc/show_img/1112222/show">/doc/show_img/1112222...</a></td>

</tr>
==============================================================
It will take the data from title and output will look like this....

=================================================================
<td class="cc">


<td>5555</td>

<td>P1</td>

<td class="a"><a href="show.cgi?id=5555" title="/document/Images/my_image">/document/Images/....</a></td>

</tr>

/document/Images/my_image

<td class="cc">
<td>6666</a>

<td>P2</td>
<td class="a"><a href="show.cgi?id=6666" title="/doc/show_img/1112222/show">/doc/show_img/1112222...</a></td>

</tr>
doc/show_img/1112222/show

Is This A Good Question/Topic? 0
  • +

Replies To: Read the all the word after a specific word in python

#2 Tayacan  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 145
  • View blog
  • Posts: 275
  • Joined: 18-January 11

Re: Read the all the word after a specific word in python

Posted 30 November 2012 - 05:41 AM

And your question is?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1