Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
 Number, alphabetic, space [ ], hyphen [-], and
slash [/] characters only
Required, Number, alphabetic, space [ ], hyphen [-], and
slash [/] characters only


What I have tried:

ive had trouble finding the regex for this, very difficult, please help
Posted
Updated 12-Apr-21 4:33am

Virtually the same answer as your previous question:
Regex alphabetic, space [ ], hyphen [-] characters only[^]
RegEx
[0-9a-zA-Z /-]
Try following the links in the answers to your previous question and learning about regular expressions for yourself.
 
Share this answer
 
Quote:
ive had trouble finding the regex for this, very difficult, please help

Your already posted the same question yesterday Regex alphabetic, space [ ], hyphen [-] characters only[^]
and got answers, state problem you have with those answers.
 
Share this answer
 
Stop posting questions that you have the answer to - with a trivial modification - and download Expresso like I suggested: Expresso[^]
It's still free, it'll still help you create and understand them.

And learn something about Regexes before you start needing to create actually complicated ones! The ones that you are trying to get others to write for you are trivial ...
[\w -/]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900