I would like to use the following HTML code in a template file (example):
Code: Select all
<input type="text" pattern="#[a-fA-F0-9]{6}" name="mycolor" value="#000000" size="7"/>
{6}
is processed by the phpbb template engine, and replaced by 6
without the brackets, making the pattern fail.Any suggestions on how to solve this? How to force the brackets into the output?
And no, putting six times the same pattern is not valid: I have other use cases for something like
{5,25}
that would be really awful in a pattern without multipliers.Thanks a lot!
-javiexin
PS: I have tested
pattern="#[a-fA-F0-9]\{6\}"
but that is not good either: the pattern includes the backslashes, so does not interpret the multiplier, and expects the brackets in the input. Also other variations do not make any difference, like using single quotes, or combinations of single/double quotes.