This topic is locked

Validate input

3/31/2021 4:42:46 AM
PHPRunner General questions
A
Andreas G. author

Validate input
https://asprunner.com/forums/forumreplies_list.php?mastertable=forumtopics&masterkey1=28043

I also need the hyphen as allowed "-"

[a-z - ä Ä ü Ü ö Ö A-Z] {3.35}

how do I now include "-" as allowed?

admin 3/31/2021

Your regular expression already includes the hyphen so it should work. In either case, you need to fully test your regular expressions before using them in PHPRunner. There is bunch of websites that provide this kind of functionality like https://regex101.com/