title: RegEx to check if the digits in a number are all the same or in sequence
body: <p>I want to check if the user's input in the server side.
  If the user enters a number 111111 or 22222 which has the same numbers,
  and also if the input is in sequence like 12345 or 456789.</p>