Top "Validation" questions

Validation is used to check data to make sure it fits whatever required specifications are set for it.

How does the SQL injection from the "Bobby Tables" XKCD comic work?

Just looking at: (Source: https://xkcd.com/327/) What does this SQL do: Robert'); DROP TABLE STUDENTS; -- I know both …

security validation sql-injection
HTML5 form validation pattern alphanumeric with spaces?

I have the following input tag in my html5 form: <p> <label>Company Name*</label&…

regex html validation forms alphanumeric
How to sanity check a date in Java

I find it curious that the most obvious way to create Date objects in Java has been deprecated and appears …

java validation calendar date
How do I remove javascript validation from my eclipse project?

I am using eclipse on my project and while messing around with my eclipse settings, I turned on Javascript support. …

javascript jquery eclipse validation syntax
How to validate an e-mail address in swift?

Does anyone know how to validate an e-mail address in Swift? I found this code: - (BOOL) validEmail:(NSString*) emailString { …

ios validation email swift
How to check whether a string is a valid HTTP URL?

There are the Uri.IsWellFormedUriString and Uri.TryCreate methods, but they seem to return true for file paths etc. How …

c# .net validation url uri
RegEx for matching UK Postcodes

I'm after a regex that will validate a full complex UK postcode only within an input string. All of the …

regex validation regex-group postal-code
PHP is_numeric or preg_match 0-9 validation

This isn't a big issue for me (as far as I'm aware), it's more of something that's interested me. But …

php validation preg-match isnumeric
Spring MVC: How to perform validation?

I would like to know what is the cleanest and best way to perform form validation of user inputs. I …

java spring-mvc validation user-input
Stop form from submitting , Using Jquery

I'm trying to stop my form from submitting if a validation fails. I tried following this previous post but I …

jquery asp.net-mvc-3 validation preventdefault