On Thu, Jan 20, 2022 at 10:44:10PM -0800, Tom Nook wrote:
> If i just click a feild, 2 rules turn red and the error message "Please
> enter a valid [1]Regular Expression pattern." pops up.
>
> I've followed the link but couldn't get them to work and now i'm
> stumped.
>
> Both fields are Checkboxs and the Name/Feild Indentifiers are below
> Error 1:
>
> div:last-child >
> label.checkbox-label.product-pricing-option[class="checkbox-label
> product-pricing-option"]:first-child >
> input[type="checkbox"]:first-child
>
> Error
> 2:label.checkbox-label.product-pricing-option[class="checkbox-label
> product-pricing-option"]:nth-of-type(3) >
> input[type="checkbox"]:first-child
>
It's difficult to tell without a bit more context but I'd guess that
the problem is those [] in the string, they are 'special' characters
in Regular Expressions so you need to escape them with a preceding \.
--
Chris Green