Autor Beitrag
JoelH
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 806
Erhaltene Danke: 17

Win10
Delphi Alexandria 11.2 Patch 1
BeitragVerfasst: Mo 21.12.09 10:46 
Ich habe folgenden Ausdruck

ausblenden Delphi-Quelltext
1:
REGEXP_LIKE(VEREIN_NAME, 'd.{1}a''i')					


der erfüllt meine Wünsche - fast ;)

Ich suche in diesem Fall nach Datensätzen in denen die Folge "d"-beliebiges Zeichen-"a" zu finden ist. Das funktioniert auch, allerdings findet er auch Datensätze bei denen zwischen "d" und "a" ein Leerzeichen ist. Diese Fälle würde ich gerne ebenfalls ausschliesen, leider hab ich gerade auf die schnelle keine Idee wie ich das das REGEXP_LIKE beibringen kann :(

_________________
mfg. Joel
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Mo 21.12.09 12:48 
Reicht dir "es ist kein Space"? Dann würde das als Ausdruck gehen:

ausblenden Quelltext
1:
d[^[:space:]]a					

Für die 1 nochmal nen Quantifier zu nehmen ist da übrigens überflüssig.

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
JoelH Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 806
Erhaltene Danke: 17

Win10
Delphi Alexandria 11.2 Patch 1
BeitragVerfasst: Mo 21.12.09 13:10 
Supi, funktioniert! Danke.

_________________
mfg. Joel