Regular Expression for matching a numeric sequence?

Posted by awhite on Stack Overflow See other posts from Stack Overflow or by awhite
Published on 2010-05-21T17:59:02Z Indexed on 2010/05/21 18:10 UTC
Read the original article Hit count: 212

Filed under:

Does anyone know of a regular expression for matching on a sequence of four numbers? I need a match on ascending (1234), descending (4321), or the same (1111).

© Stack Overflow or respective owner

Related posts about regex