Jump to content

Regular expression

Joveice
Go to solution Solved by Guest,

^[a-zA-Z0-9\._-]+$

 

This site is pretty useful at breaking things down: https://regex101.com/

Hi I'm trying to use regular expression to check usernames. I know I need it and basic how it works, but no idea how to write it.

I need one that allows a-z A-Z 0-9 _ - . and nothing more no space and all in one word.

Found this site http://regexr.com/ which somewhat explains it tho it wasent enough for me to understand it.

Back-end developer, electronics "hacker"

Link to comment
Share on other sites

Link to post
Share on other sites

^[a-zA-Z0-9\._-]+$

 

This site is pretty useful at breaking things down: https://regex101.com/

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×