English
Forum

street and House Number tidy separate

 

Erasmus.Herold
Hello together.

has someone a Ansatz, How I street and House Number tidy separate can?

simply:
Domplatz 45

tricky:
From Grafen street 45 A
Marktplatz 45A - C
...

can I numbers in a String discern let and say, everything to the
number is street everything with and to the number is House Number?

Who a idea with Codebeispiel?

thanks you - Erasmus
 
05/11/22  
 




H.Brill
so vaguely ?
Declare String streets[]
Declare String nr, amendment, street
streets[0] = "Domplatz 45"
streets[1] = "Von Grafen street 45 A"
streets[2] = "Marktplatz 45A - C"
streets[3] = "Hauptstrasse 12B"
streets[4] = "Hinter whom gardens 50 D"
Set("RegEx", 1)

WhileLoop 0, SizeOf(streets[]) - 1

    Street = Match $("[a-zA-Z äÄöÖüÜß]{1,}", streets[&LOOP])
    Nr = Match $("[0-9]{1,3}", streets[&LOOP])
    amendment = Mid$(streets[&LOOP], (%MatchPos + %MatchLen), 6)' 6 to put dürften wealthy
    Print "Straße : ", Street
    Print "Nummer : ", Nr
    Print "Zusatz : ", Trim $(amendment)

EndWhile

WaitKey
Set("RegEx", 0)
End
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
05/11/22  
 




Erasmus.Herold
this is perfect - thanks you ...

Why want it the Umschaltens with "RegEx"?
 
05/12/22  
 




H.Brill
the Match$() functions too without switch.
standing indeed so in the Help Match$().
with whom both functions InStr() and Translate$()
is it duty.

But so a Eigenart of me. If I reguläre
expressions use, schalte I automatically with
Set("RegEx", 1) The reg. expressions one, alike whether Match$(),
InStr() or Translate$().
 
Benutze XPROFAN X3 + FREEPROFAN
Wir sind die XProfaner.
Sie werden von uns assimiliert.
Widerstand ist zwecklos!
Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.

Was die Borg können, können wir schon lange.
05/12/22  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.185 Views

Untitledvor 0 min.
Gast.081507/08/24
H.Brill06/07/24
Member 862464103/27/24
Erasmus.Herold01/10/23
More...

Themeninformationen

this Topic has 2 subscriber:

Erasmus.Herold (2x)
H.Brill (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie