<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Nur Dateiname aus URL auslesen]]></title><description><![CDATA[<p>Hallo<br />
Ich benutze den <strong>BCB5</strong><br />
Hat jemand eine Ahnung wie ich ohne walk-around den Dateinamen aus einem<br />
<strong>URL</strong> extrahiere?</p>
<p>Beispiel:<br />
URL ist: <strong><a href="http://SeiteXY.com/Datei.jpg" rel="nofollow">http://SeiteXY.com/Datei.jpg</a></strong><br />
Ich möchte aber nur <strong>Datei.jpg</strong> extrahieren.</p>
<p>[cpp]</p>
<p>Datei=<strong>ExtractFileName</strong>(&quot;<a href="http://SeiteXY.com/Datei.jpg" rel="nofollow">http://SeiteXY.com/Datei.jpg</a>&quot;);<br />
[/cpp]<br />
Ergebnis: Datei=&quot;<a href="//SeiteXY.com/Datei.jpg">//SeiteXY.com/Datei.jpg</a>&quot;</p>
<p>Funktioniert also <strong>nicht</strong> (wohl weil die Slashes nach rechts zeigen)<br />
Hoffe jemand kann mir helfen...<br />
Habe durch Suche hier nichts gefunden.<br />
Danke in Voraus!<br />
Brother Luis</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/104456/nur-dateiname-aus-url-auslesen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 20:04:06 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/104456.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 19 Mar 2005 19:45:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Nur Dateiname aus URL auslesen on Sat, 19 Mar 2005 19:45:31 GMT]]></title><description><![CDATA[<p>Hallo<br />
Ich benutze den <strong>BCB5</strong><br />
Hat jemand eine Ahnung wie ich ohne walk-around den Dateinamen aus einem<br />
<strong>URL</strong> extrahiere?</p>
<p>Beispiel:<br />
URL ist: <strong><a href="http://SeiteXY.com/Datei.jpg" rel="nofollow">http://SeiteXY.com/Datei.jpg</a></strong><br />
Ich möchte aber nur <strong>Datei.jpg</strong> extrahieren.</p>
<p>[cpp]</p>
<p>Datei=<strong>ExtractFileName</strong>(&quot;<a href="http://SeiteXY.com/Datei.jpg" rel="nofollow">http://SeiteXY.com/Datei.jpg</a>&quot;);<br />
[/cpp]<br />
Ergebnis: Datei=&quot;<a href="//SeiteXY.com/Datei.jpg">//SeiteXY.com/Datei.jpg</a>&quot;</p>
<p>Funktioniert also <strong>nicht</strong> (wohl weil die Slashes nach rechts zeigen)<br />
Hoffe jemand kann mir helfen...<br />
Habe durch Suche hier nichts gefunden.<br />
Danke in Voraus!<br />
Brother Luis</p>
]]></description><link>https://www.c-plusplus.net/forum/post/748466</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/748466</guid><dc:creator><![CDATA[Brother Luis]]></dc:creator><pubDate>Sat, 19 Mar 2005 19:45:31 GMT</pubDate></item><item><title><![CDATA[Reply to Nur Dateiname aus URL auslesen on Sat, 19 Mar 2005 20:09:56 GMT]]></title><description><![CDATA[<p>Einfach vor dem Extrahieren die Slashes umkehren? Z.B. mittels AnsiReplaceStr(...). Der eigentliche Inhalt wird dadurch ja nicht verändert. Entsprechende Unit nicht vergessen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/748483</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/748483</guid><dc:creator><![CDATA[Dasd]]></dc:creator><pubDate>Sat, 19 Mar 2005 20:09:56 GMT</pubDate></item><item><title><![CDATA[Reply to Nur Dateiname aus URL auslesen on Sat, 19 Mar 2005 20:35:16 GMT]]></title><description><![CDATA[<p>Ich weiß nicht, ob ich die Frage richtig verstanden habe. Willst du einfach nur den String parsen, dass der Dateiname übrig bleibt?</p>
<pre><code class="language-cpp">std::string ExtractFileName(std::string url) {
    return url.substr( url.rfind(&quot;/&quot;)+1);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/748508</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/748508</guid><dc:creator><![CDATA[masterofx32]]></dc:creator><pubDate>Sat, 19 Mar 2005 20:35:16 GMT</pubDate></item><item><title><![CDATA[Reply to Nur Dateiname aus URL auslesen on Sat, 19 Mar 2005 20:35:28 GMT]]></title><description><![CDATA[<p>Danke für die schnelle Hilfe, DasD</p>
<p>Aber ich habe es jetzt durch dieses &quot;Monster&quot; gelöst:</p>
<pre><code class="language-cpp">Datei=url.SubString(url.LastDelimiter(&quot;/&quot;)+1,url.Length()-
url.LastDelimiter(&quot;/&quot;));
</code></pre>
<p>Danke nochmal<br />
Brother Luis</p>
]]></description><link>https://www.c-plusplus.net/forum/post/748509</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/748509</guid><dc:creator><![CDATA[Brother Luis]]></dc:creator><pubDate>Sat, 19 Mar 2005 20:35:28 GMT</pubDate></item><item><title><![CDATA[Reply to Nur Dateiname aus URL auslesen on Sat, 19 Mar 2005 20:37:00 GMT]]></title><description><![CDATA[<p>Danke auch an Dich, masterofx32</p>
]]></description><link>https://www.c-plusplus.net/forum/post/748512</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/748512</guid><dc:creator><![CDATA[Brother Luis]]></dc:creator><pubDate>Sat, 19 Mar 2005 20:37:00 GMT</pubDate></item><item><title><![CDATA[Reply to Nur Dateiname aus URL auslesen on Sat, 19 Mar 2005 20:40:55 GMT]]></title><description><![CDATA[<p>Kein Monster sondern die exakt gleiche Funktion welche auch gepostet wurde. Nur mit dem AnsiString statt dem STL String...</p>
<p>-junix</p>
]]></description><link>https://www.c-plusplus.net/forum/post/748519</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/748519</guid><dc:creator><![CDATA[junix]]></dc:creator><pubDate>Sat, 19 Mar 2005 20:40:55 GMT</pubDate></item><item><title><![CDATA[Reply to Nur Dateiname aus URL auslesen on Sat, 19 Mar 2005 22:05:30 GMT]]></title><description><![CDATA[<blockquote>
<p>Kein Monster sondern die exakt gleiche Funktion welche auch gepostet wurde. Nur mit dem AnsiString statt dem STL String...</p>
</blockquote>
<p>ok,ok...<br />
&quot;Monster&quot; weil ich eine Funktion &quot;Extract<strong>Url</strong>FileName&quot; vermisse, die so einfach zu &quot;füttern&quot; ist wie &quot;ExtractFileName&quot;...<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/748599</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/748599</guid><dc:creator><![CDATA[Brother Luis]]></dc:creator><pubDate>Sat, 19 Mar 2005 22:05:30 GMT</pubDate></item></channel></rss>