Q:

Regular Expression multiple numbers, and sequential numbers

I need regex with the following rules: 

numeric only
minimum and maximum characters of 9
not allowed to type the same number multiple times like 1111111111
no sequential numbers ascending like 1234567
and no sequential numbers descending like 7654321

Can anyone help me with this? 

A:

try this:
^
(?!
  (.)\1{8}
 )
(?!
  (?: 123456789|987654321 )
 )
\d{9}
$

demo

