Abide pattern HTML5 compatible

Update EOL and BOL markers for existing patterns
Patterns defined in form are appended with /^ and $/ 
Note: An assumptions is made that input pattern from the form does not include the /^ and $/

Issue:#4774
Not checked for date and url related pre defined patterns