Autor Beitrag
Horst_H
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1654
Erhaltene Danke: 244

WIN10,PuppyLinux
FreePascal,Lazarus
BeitragVerfasst: Sa 15.10.05 09:00 
Hallo,

@Lannes:
ausblenden Delphi-Quelltext
1:
 v := [' ','.',',',';',':','!','?',#13,#10];//kann erweitert werden					

ist besser gleich alle Zeichen (Steuerzeichen wie Tab Linefeed etc) unterhalb des Leerzeichens auszuschliessen.
ausblenden Delphi-Quelltext
1:
 v := [#0..#32,'.',',',';',':','!','?','"','/','\'];//kann erweitert werden					

Es bleibt aber immer noch eine Problem mit Emailadressen oder URL's wie www.blablabla.de.

Gruss Horst
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Sa 15.10.05 09:31 
Hallo,

klar, deshalb
user profile iconLannes hat folgendes geschrieben:
...etwas zum erweitern, verbessern, verschnellern...

Die Vorgehensweise kann man nicht generell vorgeben,
ist abhängig von dem Quellstring und dem gewünschten Ergebnis.

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
Danniolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 693



BeitragVerfasst: Sa 15.10.05 11:53 
user profile iconIronwulf hat folgendes geschrieben:
joa danke funktioniert, lustisch was 3 zeilen alles können ;D

War damit sein Anliegen nicht schon längst gelöst... :wink:
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Mo 17.10.05 20:32 
Alternativ geht doch auch
ausblenden Delphi-Quelltext
1:
Memo1.Text:=StringReplace(Memo1.Text,' ',#10#13,[rfReplaceAll]);					

Oder hat da jemand Probleme damit? ^^

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Mo 17.10.05 22:25 
Hallo,
user profile iconDanniolo hat folgendes geschrieben:
user profile iconIronwulf hat folgendes geschrieben:
joa danke funktioniert, lustisch was 3 zeilen alles können ;D

War damit sein Anliegen nicht schon längst gelöst... :wink:

Für user profile iconIronwulf war die Lösung ohne Berücksichtigung von Satzzeichen anscheinend ausreichend.
Aber im Interresse von anderen Nutzern der EE die diesen Beitrag über die Suche finden, ist es doch besser wenn hier eine Möglichkeit aufgezeigt wird, wie man z.B auch Satzzeichen berücksichtigen kann. :wink:

user profile iconJayEff hat folgendes geschrieben:
Alternativ geht doch auch
ausblenden Delphi-Quelltext
1:
Memo1.Text:=StringReplace(Memo1.Text,' ',#10#13,[rfReplaceAll]);					

Oder hat da jemand Probleme damit? ^^

Ja, der Thread-Ersteller user profile iconIronwulf arbeitet mit Delphi 3 das kein StringReplace kennt.

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Mi 19.10.05 20:01 
Das hatten wir schon. Aber er kann ja StringReplace nachprogrammieren, oder eine Unit runterladen die die Funktion bereitstellt, ich bin sicher IRGENTWO findet sich da was. Oder er laedt sich eben ... D7.. halt warte das ist ja VERBOTEN! :evil: also nich machen. Niemals Borland Delphi7 enterprise in Emule eingeben.

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Mi 19.10.05 21:31 
Hallo,

warum in die Weite schweifen, denn das Gute Liegt so nah :lupe:
user profile iconDelphi-Library hat folgendes geschrieben:
user profile iconPopov hat folgendes geschrieben:
StringReplace Ersatz für ältere Delphi Versionen

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )