Autor Beitrag
noreux2
Hält's aus hier
Beiträge: 1



BeitragVerfasst: Do 07.12.06 12:50 
Moin Moin,

Habe eine kurze Frage, wäre nett wenn mir jemand einen Tipp geben kann. Ich habe folgende URL in string1:

ausblenden Quelltext
1:
http://www.server.com/datei.exe					


nun möchte ich dass in String2 nur der Dateiname steht, also datei.exe
Dies soll natürlich auch für andere URLs funktionieren, ich bräuchte also immer den text zwischen dem letzten Slash und dem ende. hat mir da jemand n möglichst einfachen befehl dafür?

danke und gruß

Nor2
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Do 07.12.06 12:55 
Moin und :welcome: im Forum!

Gib mal lastdelimiter ein und drück F1. ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Xion
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
EE-Maler
Beiträge: 1952
Erhaltene Danke: 128

Windows XP
Delphi (2005, SmartInspect), SQL, Lua, Java (Eclipse), C++ (Visual Studio 2010, Qt Creator), Python (Blender), Prolog (SWIProlog), Haskell (ghci)
BeitragVerfasst: Do 07.12.06 15:27 
probier mal String2:=ExtractFileName(String1); könnte gehen, weiß ich nicht genau

_________________
a broken heart is like a broken window - it'll never heal
In einem gut regierten Land ist Armut eine Schande, in einem schlecht regierten Reichtum. (Konfuzius)