I try to find a solution for this HTML5 form validation scenario:
I have an input field, wher the user needs to enter his full name like "John J. Jones"
placeholder="Please insert your full name"
pattern="this is where I need some help please"
required="required"
title="Please insert your full name as per your registration form">
I would like the pattern to validate, if "somewhere" in the input field the string 'Jones' (or 'jones') has been entered. It could be in the beginning, somewhere in the middle or at the end, can be entered in all lowercase, upper and lowercase combination or upper case only ...
So valid inputs would be:
"J.J. Jones"
"j.j.jones"
"Jones, John"
"jones, john"
"John Jones III."
"j.jones III."
All is ok, as long as "jones" is somewhere in the string entered.
Thank you!