Skip to content

Add Regular Expression function to validate UK phone numbers #1136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 3, 2024

Conversation

naveenraw25
Copy link
Contributor

Regular Expression function to validate UK 10 digit country code phone numbers based on the format +44 7XXX XXXXXX.

Regular Expression: Implemented a regex pattern to match the UK phone number format.
Validation Function: Created the isUK function to test phone numbers against the regex.
Example Usage: Added an example to demonstrate how to use the validation function and log the results.

Add function to validate UK phone numbers

- Implement regex to match UK phone number format +44 7XXX XXXXXX
- Create isUK function to test phone numbers against the regex
- Add example usage and logging for validation results
@snamjosh snamjosh merged commit e9540a4 into ServiceNowDevProgram:main Oct 3, 2024
1 check passed
@snamjosh snamjosh self-assigned this Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants