Page 1 of 1
fetch substring from string
Posted: Fri Jan 24, 2014 9:31 am
by monikadhingra
Hi ,
I want to fetch substring from string ,please confirm how i am able to do this.
Regards,
Monika.
Re: fetch substring from string
Posted: Fri Jan 24, 2014 9:58 am
by Thierry
monikadhingra wrote:Hi ,
I want to fetch substring from string ,please confirm how i am able to do this..
Yes, you can
Ok, type "offset" in the dictionnary and read about all items you'll find.
There is surely one function which will do the job.
Or give us a bit more details about your string and substring...
Regards,
Thierry
Re: fetch substring from string
Posted: Mon Jan 27, 2014 7:09 am
by monikadhingra
Hi ,
Please check below mention html that i am getting from server i want to fetch image from this description,tag is img src for image url.
<table cellpadding='10'><tr><td valign='top'><a href='
http://www.wirtschaft.com/soli-einnahme ... rden-euro/' title='"Soli"-Einnahmen übersteigen Solidarpakt-Ausgaben bis 2019 um 66 Milliarden Euro'><img src='
http://www.wirtschaft.com/wp-content/up ... _33421.jpg' border='0' height='150px' width='200px' /></a></td><td valign='top' align='left'>Berlin – Die Einnahmen aus dem Solidaritätszuschlag übersteigen bis zum Jahr 2019 die Solidarpakt-Ausgaben um 66 Milliarden Euro. Der Solidaritätszuschlag wird in den nächsten sechs Jahren rund 99 Milliarden Euro in die Staatskassen spülen, wie die “Welt” unter Berufung auf Berechnungen des Steuerzahlerbundes berichtet. Zugleich wird Bundesfinanzminister Wolfgang Schäuble (CDU) im selben Zeitraum lediglich 33 […]<p>Rubriken: <ul class="post-categories">
<li><a href="
http://www.wirtschaft.com/nachrichten/news/" title="Alle Beiträge in News ansehen" rel="category tag">News</a></li>
<li><a href="
http://www.wirtschaft.com/nachrichten/schlagzeilen/" title="Alle Beiträge in Schlagzeilen - aktuelle Wirtschaftsnachrichten ansehen" rel="category tag">Schlagzeilen - aktuelle Wirtschaftsnachrichten</a></li>
<li><a href="
http://www.wirtschaft.com/nachrichten/w ... utschland/" title="Alle Beiträge in Wirtschaft Deutschland ansehen" rel="category tag">Wirtschaft Deutschland</a></li></ul></p><p></p><table width='100%'><tr><td align=left><p><b>(<a href='
http://www.wirtschaft.com/soli-einnahme ... rden-euro/' title='"Soli"-Einnahmen übersteigen Solidarpakt-Ausgaben bis 2019 um 66 Milliarden Euro'>Weiterlesen ...</a>)</b></p></td></tr></table></td></tr></table>
Re: fetch substring from string
Posted: Mon Jan 27, 2014 9:05 am
by Thierry
monikadhingra wrote:Please check below mention html that i am getting from server i want to fetch image from this description,tag is img src for image url.
<img src='
http://www.wirtschaft.com/.....
Hello Monika,
You can check my answer in this other thread to get urls out of html text.
This should be a good start..
http://ftp.runrev.com/forums/viewtopic. ... bd2#p89699
PS: If regex are not your cup of tea, then just shout it here, and I'm sure
Klauss, Simon, Jacque or others wil come to the rescue
Thierry