0

I am new to Regular Expressions, can't wrap my mind around this one, can anyone please help me out here, what is it doing:

^[A-Za-z0-9~!@#$%^&amp; *()_<>+`\-={}\[\]:;'&quot;,./?|\\\s']{0,8000}$

what possibilities does this left out?

4
  • 1
    leaves out a lot, what would you like to accomplish with your regex? what do you want to allow and disallow ? Commented Nov 25, 2013 at 14:15
  • @CSᵠ can you be more specific like what? One possibility as Cas mentioned is HTML characters, as I didn't write this but happen to find in our code base written by someone else in the past, therefore, I need to clear my concept before new implementation. Commented Nov 25, 2013 at 14:23
  • you can't add "html entities" in a regex character class as it would interpret it character by character (eg. /[&quot;]/ would match theese characters only: o, q, t, u, & and ; !) Commented Nov 25, 2013 at 14:25
  • The site only works for Python, javascript ? seems no c# support ? Commented Nov 26, 2013 at 5:11

1 Answer 1

2

http://regex101.com/r/mN3aB2

you tell me what it leaves out

not what you meant? be more clear in what you want to know

EDIT

A mate pointed this one out to me

http://regex101.com/r/tS5dT9

Sign up to request clarification or add additional context in comments.

5 Comments

I don't know as I didn't write it
@Ali on the site in my answer is the explanation of what it doesn't capture.
@Ali regex101.com/r/rZ5bQ0 here with (i think) pretty much all characters (Alt-combinations left out)
A bit late, but here's some more from my keyboard only (no alt+xxx): regex101.com/r/sP3nX9
@Enissay yeah, thats what i warned Ali for... there are a lot of inputs to forget about very easily.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.