title: HTML input pattern with symbols automaticaly added
body: <p>I am creating a form where someone needs to enter a certain code so I want to use the pattern attribute on my input element.
  But I need more than this.</p>
  <p>For example the code looks like this: 12.01.19-123.45
  But I don't want to user to enter the &quot;.&quot; and the &quot;-&quot; symbol manually.
  Is there a built in way so it gets added automatically?</p>