Sign In with your
Trend Micro Account
Need Help?
Need More Help?

Create a technical support case if you need further support.

Regular expressions for some standard Spanish (ES) patterns

    • Updated:
    • 24 Aug 2016
    • Product/Version:
    • OfficeScan 10.6
    • OfficeScan 11.0
    • Platform:
    • Windows 2003 Enterprise
    • Windows 2008 Standard
    • Windows 7 32-bit
    • Windows XP Professional
Summary

Learn the necessary information in generating standard patterns for Data Loss Prevention (DLP) Spanish (ES) region.

Details
Public
 
These are created for specific patterns and might be revised in a case-to-case basis. If the patterns are different, the regular expressions must be modified accordingly.
?

Spanish telephone numbers

The following patterns are used to create the provided regular expression:

Use "9" as the first digit and use one or two numbers for the city prefix, then followed by 7 digits for the number.

  • 9x -xxx xx xx
  • 9xx -xxx xx xx
  • (9x) xxx xx xx
  • (9xx) xxx xx xx

Regular expression:

[^\d]([(9]+\d{1,2}\)?[-\s]+[\d\s]{7,9})[^\d]

Mobile numbers

Use "6" or "7" as the first digit, and 8 additional digits in this format:

  • 6xx xxx xxx
  • 7xx xxx xxx

Regular expressions:

[^\d]([67][\d\s]{7,10})[^\d]
[^\d]([67]\d\d\s\d{3}\s\d{3})[^\d]

European monetary numbers

The European monetary numbers are separated with comma for the decimals, and dot for the thousands, followed by a euro symbol.

For example: 1.064,32 € (one thousand and sixty four euros and thirty two cents)

Regular expression:

[^\d]((\d{1,3}\.(\d{1,3}\.)?)?\d{1,3}(,\d{2})?\s?€)

Spanish credit card numbers

  • VISA

    VISA numbers are 4x groups of 4x digits (total of 16 digits) and starts with "4".

    For example: 4xxx xxxx xxxx xxxx

    Regular expression:

    [^\d](4\d{3}\s?\d{4}\s?\d{4}\s?\d{4})[^\d]

  • Master Card

    Master Card numbers are 4x groups of 4x digits (16 digits) and starts with "5". They have secondary number of either 1,2,3,4 or 5.

    • 51xx xxxx xxxx xxxx
    • 52xx xxxx xxxx xxxx
    • 53xx xxxx xxxx xxxx
    • 54xx xxxx xxxx xxxx
    • 55xx xxxx xxxx xxxx

    Regular expression:

    [^\d](5[12345]\d{2}\s?\d{4}\s?\d{4}\s?\d{4})[^\d]

Premium
Internal
Rating:
Category:
Configure
Solution Id:
1058647
Feedback
Did this article help you?

Thank you for your feedback!

To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.

If you need additional help, you may try to contact the support team. Contact Support


To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.


Need More Help?

Create a technical support case if you need further support.