Expression to restrict the number of digits (numbers) in a text field
This only works in a single line text box (not rich text)
this will restrict the number numbers in a texf field
^\d{8}$
If you want chars, then just do .{8}
in the above examples the 8 represents the number allowed – it cannot be less or more