Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
JavaScript
12.2K+ articles
HTML
5.8K+ articles
JavaScript-Questions
2.1K+ articles
JavaScript-Methods
539+ articles
JavaScript-DSA
499+ articles
javascript-string
255+ articles
JavaScript-Properties
103+ articles
Web QnA
34+ articles
JavaScript-RegExp
75 posts
Recent Articles
Popular Articles
JavaScript RegExp() Constructor
Last Updated: 07 December 2024
The RegExp() constructor in JavaScript allows you to create a regular expression object that can be used to match patterns in strings. This method is particularly useful w...
read more
JavaScript
Web Technologies
JavaScript-RegExp
JavaScript RegExp dotAll Property
Last Updated: 05 December 2024
The dotAll property in JavaScript regular expressions determines whether the 's' (dotAll) flag is enabled. This flag modifies the behaviour of the dot (.) metacharacter, a...
read more
JavaScript
Web Technologies
JavaScript-RegExp
JavaScript RegExp Flags Property
Last Updated: 05 December 2024
RegExp flags are a set of optional characters added to the regular expression pattern to control its behavior. Flags modify how the pattern is interpreted during the searc...
read more
JavaScript
Web Technologies
JavaScript-RegExp
JavaScript - How to Add Spaces Between Words Starting with Capital Letters Using RegExp?
Last Updated: 07 December 2024
Here are the different ways to add spaces between words starting with capital letters using RegExp in JavaScript1. Use Regex with the replace MethodThis is the most direct...
read more
JavaScript
Web Technologies
JavaScript-RegExp
JavaScript-Questions
JavaScript - How to Use a Variable in Regular Expression?
Last Updated: 04 December 2024
To dynamically create a regular expression (RegExp) in JavaScript using variables, you can use the RegExp constructor. Here are the various ways to use a variable in Regul...
read more
JavaScript
Web Technologies
Picked
JavaScript-RegExp
JavaScript-Questions
JavaScript - How to Access Matched Groups in Regular Expression?
Last Updated: 06 December 2024
Here are the different methods to access matched groups in JavaScript regular Expression(RegExp).1. Using exec() MethodThe exec() method returns an array with the entire m...
read more
JavaScript
Web Technologies
Picked
JavaScript-RegExp
JavaScript-Questions
JavaScript - Validate Password in JS
Last Updated: 16 January 2025
To validate a password in JavaScript regex to ensure it meets common requirements like length, uppercase letters, lowercase letters, numbers, and special characters. we wi...
read more
JavaScript
Web Technologies
JavaScript-RegExp
JavaScript-Questions
JavaScript-Program
JavaScript - What is RegExp Object?
Last Updated: 05 December 2024
The RegExp object in JavaScript is a powerful tool for pattern matching, searching, and manipulating strings. It allows you to define patterns for matching text and helps ...
read more
JavaScript
Web Technologies
JavaScript-RegExp
JavaScript-QnA
WebTech-FAQs
JavaScript String.Split() Example with RegEx
Last Updated: 07 December 2024
The String.split() method in JavaScript is used to divide a string into an array of substrings. While it is often used with simple delimiters like spaces or commas, you ca...
read more
JavaScript
Web Technologies
Picked
Web technologies
JavaScript-RegExp
JavaScript RegExp s Modifier
Last Updated: 07 December 2024
The s modifier (also known as the "dotall" modifier) in JavaScript regular expressions allows the dot (.) metacharacter to match newline characters (\n) as well. Without t...
read more
JavaScript
Web Technologies
JavaScript-RegExp
JavaScript RegExp u Modifier
Last Updated: 04 December 2024
The u modifier in JavaScript regular expressions (RegExp) enables Unicode support, ensuring that the pattern correctly interprets and matches Unicode characters, including...
read more
JavaScript
Web Technologies
JavaScript-RegExp
JavaScript RegExp y Modifier
Last Updated: 04 December 2024
In JavaScript, the y modifier is used in regular expressions for sticky matching, meaning the regular expression search will only start at the position where the last matc...
read more
JavaScript
Web Technologies
JavaScript-RegExp
JavaScript - How to Use RegExp in Switch Case Statements?
Last Updated: 04 December 2024
To make your JavaScript switch statements more dynamic and flexible, you can use regular expressions (RegExp). Here are the various ways to use RegExp in switch case state...
read more
JavaScript
Web Technologies
JavaScript-RegExp
Web QnA
JavaScript - Username Validation using Regex
Last Updated: 16 January 2025
We are going to validate usernames in JavaScript. Username validation is a common requirement in user registration forms, ensuring that usernames meet the specific criteri...
read more
JavaScript
Web Technologies
JavaScript-RegExp
JavaScript Regular Expressions Coding Practice Problems
Last Updated: 01 February 2025
Regular expressions (regex) in JavaScript provide a powerful way to search, match, and manipulate text patterns. They are widely used in form validation, data extraction, ...
read more
JavaScript
Web Technologies
JavaScript-DSA
JavaScript-RegExp
JavaScript-Questions
1
2
3
4
5
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !