English
Forum

not allowing characters in a String

 

Erasmus.Herold
Hallöchen ...

gives it in xProfan a commands / a function, with the I a
String on allowing characters Verify can?

Z.B., whether "name$" only from "a....z", "A...Z","0...9", "_" exists?

thanks for suitable Tipp.
 
01/09/19  
 




H.Brill
gives not, but the can you with the regulären squeeze out
too yourself quick release.
Declare String Text
CLS
Set("RegEx", 1)
Text = "1234abc567"

If TesteString(Text) = 1

    Print "Unerlaubtes characters found !"

Else

    Print "Alles OK !"

EndIf

Proc TesteString

    Parameters String s
    Declare Long Error
    Error = 0

    WhileLoop 1, Len(s)

        If Instr("[a-zA-Z0-9_]", Mid$(s, &LOOP, 1))

            ' everything is well

        Else

            Error = 1
            Break

        EndIf

    EndWhile

    Return Error

ENDPROC

WaitKey
Set("RegEx", 0)
End

If it on speed mangelt, can too yet
The MOVELISTPROC bemühen. then must You hold whom counter
for Mid$() yourself with a Long/Int produce and yourself
hochzählen. moreover take You Move("StringToList", s, D).
but before behind each characters a Trenner insert.
 
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.
01/09/19  
 




Erasmus.Herold
Thank you - perfect!
 
01/13/19  
 



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.310 Views

Untitledvor 0 min.
RudiB.04/26/22
Michael Hettner08/27/21
Walter06/26/21
N.Art11/18/20
More...

Themeninformationen

this Topic has 2 subscriber:

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


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