Regular Expressions 101

Community Library Entry

-2

Regular Expression
Java 8

"
(?=\b\d{8}\b)(?:(?:9?8?7?6?5?4?3?2?1?0?)|(?:0?1?2?3?4?5?6?7?8?9?))(?<=\d{8})
"
gm

Description

This regex is to match Ascending or descending order of 8 digit number

Submitted by anonymous - a year ago