Test, validate and match regular expressions
This regular expression validates 9-digit mobile numbers for Saudi Arabia (KSA), ensuring the number starts with a '5' followed by exactly eight digits. It is commonly used in form validations to verify that user input matches the standard domestic format for Saudi mobile phone numbers. The anchors ensure the entire string is evaluated, preventing extra characters from being accepted.