Test, validate and match regular expressions
This regular expression matches a 16-digit credit card number that starts with the digit 4, typical of Visa cards. It allows the digits to be grouped into four sets of four, optionally separated by a space or hyphen. The pattern is useful for validating or extracting Visa card numbers in text processing, form validation, and data cleaning tasks.