---
title: "Reehan (@the-accidental-dev) | Hashnode"
description: "Reehan (@the-accidental-dev) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@the-accidental-dev"
---

@the-accidental-dev

# Reehan

@the-accidental-dev · Joined October 2020

## Comments

[Hey, firstly, great article! However, in your regex replace example, I believe something's missing? Running the following will throw an error: Uncaught ReferenceError: str is not defined var heyStr = "Hey now!"; var byeStr = "Bye"; var res = str.replace("Hey", "Bye")//returns ; Shouldn't res = heyStr.replace("Hey", "Bye") ? Similarly, the str.search() example is missing. Let me know if I'm missing something?](https://hashnode.com/posts/regular-expressions-in-javascript/5f7a4ca09c3b6e4101217b16/comment/5f7bc289e93896601dd2908b)

Comment · Article · Oct 6, 2020 · [Regular Expressions in JavaScript.](https://hashnode.com/posts/regular-expressions-in-javascript/5f7a4ca09c3b6e4101217b16)
