Office 365 DLP Regular Expression (RegEx)

Super Contributor

What is the O365 DLP regex for digit string below (including spaces)?


1234 1234 1234 1234

2 Replies
best response confirmed by Marvin Oco (Super Contributor)

There are probably dozen different ways to match this string, you can try something like this:




If you want to avoid leading/trailing numbers:




If you want to match the actual numbers 1..4:



Thanks Vasil