Autor Beitrag
pigfacejoe
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 332
Erhaltene Danke: 1

Win 10, Ubuntu
Delphi,Javascript, PHP, Java, Python
BeitragVerfasst: Mi 01.07.09 12:01 
Hallo,
folgendes kleines Problem:
Ich möchte im String s nach dem Ausdruck "value='" suchen.In Delphi beduetet das Zeichen ' ja, das ein String beginnt oder endet, ich möchte aber nach dem Zeichen suchen-In PHP kann man dann ja einen Backslash vor " setzen und gut ist, aber wie geht das in Delphi?


Moderiert von user profile iconNarses: Topic aus Sonstiges (Delphi) verschoben am Mi 01.07.2009 um 12:51
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mi 01.07.09 12:04 
ausblenden Delphi-Quelltext
1:
myString := ''''// myString hat dann den Inhalt '					

_________________
We are, we were and will not be.
pigfacejoe Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 332
Erhaltene Danke: 1

Win 10, Ubuntu
Delphi,Javascript, PHP, Java, Python
BeitragVerfasst: Mi 01.07.09 12:07 
Danke !
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mi 01.07.09 12:08 
Oder konkret für dein Beispiel: s := 'value=''''';

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mi 01.07.09 12:51 
Moin!

Alternativ:
ausblenden Delphi-Quelltext
1:
s := 'value='#39;					
cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.