This article summarises some of the most common regular expressions in the configuration for document extraction or sorting.
These expressions can also be used as a pattern for field validation (HTML5 pattern).
Text with three numbers, one capital letter and eight numbers.
For example: 050A94834844
The expression would be: [0-9]{3}[A-Z]{1}[0-9]{8}
DNI
For example: 76545467K
The expression would be: [0-9]{8}[A-Z]{1}
Useful links
Tool for testing online expressions (remember not to put sensitive data in this tool): https://pythex.org/
Other employers: https://www.html5pattern.com/
Comments
0 comments
Please sign in to leave a comment.