Test, validate and match regular expressions
This regex matches potential credit card numbers by finding sequences of 13 to 16 digits that may be separated by spaces or hyphens. It uses word boundaries to ensure the sequence is isolated and the lazy quantifier to handle optional separators between digits. Common use cases include masking or detecting credit card numbers in text for data protection and compliance.