In JavaScript, regex is used to manipulate and validate text-based data. Understanding how regex works in JavaScript is essential for any programmer looking to improve their JavaScript skills. In this article, we will explore the basics of regex in J...

Markdown supported · ⌘↵ to post
Anthony Fung
Angular/.NET Web developer. I write insights, thoughts, and stories to help software developers build a solid foundation for their skills
Great intro to Regex!
It's not just in programming logic that Regex can help. Some editors like Visual Studio and VS Code allow doing find/replace with Regex.
I like using VS Code because it gives live feedback for the search expression. By using capture groups, it's possible to do lots of code replacements that would otherwise take a while if done manually.