---
title: "Discussion on \"Step by Step guide to validate a user name and US & Ethiopian Phone Numbers with PHP preg_match\" | Hashnode"
description: "Discussion on \"Step by Step guide to validate a user name and US & Ethiopian Phone Numbers with PHP preg_match\". PHP preg_match examples that can be used for real-life projects are hard to come by. Here I try to elaborate regex in PHP by using actual codes I have used to validate user name, email, phone number, etc. However, as usual, I suggest checking the  ba..."
url: "https://hashnode.com/posts/step-by-step-guide-to-validate-a-user-name-and-us-and-ethiopian-phone-numbers-with-php-pregmatch/616f95a20c5e175a1c6107bc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Step by Step guide to validate a user name and US & Ethiopian Phone Numbers with PHP preg\_match](https://alula.hashnode.dev/step-by-step-guide-to-validate-a-user-name-and-us-and-ethiopian-phone-numbers-with-php-pregmatch?utm_source=hashnode&utm_medium=feed)

PHP preg\_match examples that can be used for real-life projects are hard to come by. Here I try to elaborate regex in PHP by using actual codes I have used to validate user name, email, phone number, etc. However, as usual, I suggest checking the ba...

Oct 20, 2021 · 6 min read · alula.hashnode.dev  
Read the article

-   [#php](https://hashnode.com/tag/php)
-   [#regex](https://hashnode.com/tag/regex)
-   [#validation](https://hashnode.com/tag/validation)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#beginner](https://hashnode.com/tag/beginner)

## Written by

[Alula Kibrom](https://hashnode.com/@Altsy)

@Altsy

  
[View profile](https://hashnode.com/@Altsy)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
