I want to validate that users are entering a classification before there summary text.
So I want to check if the summary starts with (U) or (S) or (TS)
for my regex I input
^([US])* or (TS)*
this doesn't seem to work. The error displays even after I have entered one of the classifications.
ex: summary would be (U) This is my Summary. If it didn't contain (U) it should throw an error.
Is my regex not correct?
^(?:U|S|TS).*
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
^(?:U|S|TS).*
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.