Error "The pattern "<RegEx pattern>" is not valid because the cumulative range <number> is too large. The maximum valid cumulative range size is 8"
search cancel

Error "The pattern "<RegEx pattern>" is not valid because the cumulative range <number> is too large. The maximum valid cumulative range size is 8"

book

Article ID: 381768

calendar_today

Updated On:

Products

Data Loss Prevention Enterprise Suite

Issue/Introduction

When saving a data identifier an error like the following occurs:

The pattern "^0{0,7}[1-9]\d{0,7}$|^0{8,14}[1-9]\d{0,6}$" is not valid because the cumulative range 26 is too large. The maximum valid cumulative range size is 8.

Cause

This is a known limitation of the product. RegEx's have some limitations on them in order to prevent excessive memory usage while scanning data.

Resolution

The regex pattern needs to be simplified. In the case above it was simplified to: \d{15} 

This simplified version does not check for leading zero's but otherwise works for checking for numbers up to 15 digits. 

Note that further validators were also needed in order to prevent false positives.