Skip to main content
Question

Regex or some other pattern matching for classification policy?

  • May 23, 2025
  • 1 reply
  • 13 views

Forum|alt.badge.img

Is there a way to create a custom criteria that is not just static terms? We'd like to do something similar to the SSN and Credit Card criteria that are built into classification, but with our own number (student/staff ID numbers). Is there a way to specify something like:

if file contains a number that starts with a 1 and is followed by 7 digits then classify as X

or in a simple regex: ^1[0-9]{7}$

Thanks!

1 reply

Forum|alt.badge.img

Hi Joey, 

Welcome to Box Community and glad to help! 

I opened a new ticket for our Product Support team regarding your inquiry. Someone from our team will get in touch via email and please keep an eye to your email. 

Thanks for posting!