---
title: "Discussion on \"Regex Complete Cheat Sheet JavaScript\" | Hashnode"
description: "Discussion on \"Regex Complete Cheat Sheet JavaScript\". Certainly! Here's a cheat sheet for regular expressions in JavaScript:\n\nCreating a Regular Expression:\n\n/pattern/flags: Using literal notation.\n\nnew RegExp(\"pattern\", \"flags\"): Using the RegExp constructor.\n\n\n\nFlags:\n\ni: Ignore case.\n\ng: Global searc..."
url: "https://hashnode.com/posts/regex-complete-cheat-sheet-javascript/64c149c92e917b6790af8b1a"
---

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

Discussion

# [Regex Complete Cheat Sheet JavaScript](https://indracit.hashnode.dev/regex-complete-cheat-sheet-javascript?utm_source=hashnode&utm_medium=feed)

Certainly! Here's a cheat sheet for regular expressions in JavaScript: Creating a Regular Expression: /pattern/flags: Using literal notation. new RegExp("pattern", "flags"): Using the RegExp constructor. Flags: i: Ignore case. g: Global searc...

Jul 26, 2023 · 6 min read · indracit.hashnode.dev  
Read the article

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

## Written by

[Indracit S](https://hashnode.com/@indrajithij98)

@indrajithij98 · Chennai, India

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

Software Engineer

Software Engineer | JavaScript, React, Redux, Node JS, Express, MongoDB

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
