Hey, I am looking for a regex for validation so no HTML tags is entered into a data string.
for example: one of the validations I use for email is this
and this is one of the validation for email we use
^((?!gmail.com|hotmail.com|yahoo.com|outlook.com|protonmail.com|onlinemailbox.cc|businessmailsystem.com|smcclient.com|emailsl.com|temporary-mail.net|companycontacts.net|yopmail.com|mail.ee|onlinemailbox.cc).)*$
@Fahad_Sheji First thing, regex is working correctly in almost every platform and I have tested these in Regex101 which is powerful tool regarding Regex. I am unable to understand about your form, please elaborate more about it
Okay, so I have a form and I want to add a regex validation so that no HTML tag is entered there when a user submits any information.
(i.e. sometime some user may add a <“b”> or <“i”> or different HTML tags like that when filling the form)
I want to add a validation in that field of the form that won’t allow them to enter any HTML tags
This is one of the validation regex we use for email addresses, want something similar to reject HTML tags in being entered
the one in the pic has a star at the end of regex and the regex you shared as text doesn’t, was that a mistake?
also where can I test a validation regex