Jump to content

benclark

Members
  • Posts

    1
  • Joined

  • Last visited

benclark's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. It seems like you're encountering issues with the regular expressions used in your HTML input patterns. The error messages indicate that there are problems with the syntax of these regular expressions. Let's break down the issues: For the first pattern: <input pattern='^@\s]+@[^@\s]+\.[^@\s]+$'> The error message indicates that "raw bracket is not allowed in regular expression with unicode flag." This means there's an issue with the brackets ([ and ]). It seems like there might be a typo or a misplaced bracket in your expression. You may want to double-check the syntax and ensure that the brackets are properly balanced. For the second pattern: <input pattern='^[a-zA-Z0-9]+[a-zA-Z0-9-\s,():'\.\[\]]*$'> The error message points out that "character class escape cannot be used in class range in regular expression." This suggests there's a problem with how you're using escape characters within character classes. The single quotes (') within the character class might be causing confusion. You should either escape them properly or remove them if they're not necessary. To fix these issues, you might consider revising your regular expressions according to the error messages provided and ensure they adhere to the syntax rules for regular expressions. If you need further assistance with the specific patterns, feel free to provide more details or context, and I'd be happy to help further.
×
×
  • Create New...