---
title: "Discussion on \"Keeping code simple with regular expressions\" | Hashnode"
description: "Discussion on \"Keeping code simple with regular expressions\". Scenarios where RegEx fit better than if/else statements and loops"
url: "https://hashnode.com/posts/keeping-code-simple-with-regular-expressions/60ba65b0fffc4c13b9cd4bc1"
---

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

Discussion

# [Keeping code simple with regular expressions](https://waqar.org/keeping-code-simple-with-regular-expressions?utm_source=hashnode&utm_medium=feed)

Scenarios where RegEx fit better than if/else statements and loops

Jun 4, 2021 · 5 min read · waqar.org  
Updated Jun 8, 2021  
Read the article

-   [#regex](https://hashnode.com/tag/regex)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#php](https://hashnode.com/tag/php)

## Written by

[Waqar Ahmed](https://hashnode.com/@waqarahmed)

@waqarahmed

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

Software Engineer

Most often use technologies like PHP, Laravel, JavaScript, SQL and Linux. Portsmouth university alumnus. Like a one-line, elegant algorithm.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
