Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Web Technologies
40.3k+ articles
JavaScript
11.5k+ articles
HTML
5.1k+ articles
JavaScript-Questions
2k+ articles
JavaScript-Methods
520+ articles
JavaScript-DSA
480+ articles
javascript-string
240+ articles
javascript-functions
120+ articles
ES6
90+ articles
JavaScript-Properties
90+ articles
JavaScript-RegExp
75 posts
Popular Articles
Recent Articles
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
...read more
Web Technologies
JavaScript
JavaScript-RegExp
JavaScript-Questions
JavaScript-Program
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
...read more
Web Technologies
JavaScript
Picked
JavaScript-RegExp
JavaScript-Questions
JavaScript - How to Validate Form Using Regular Expression?
Last Updated: 03 December 2024
To validate a form in JavaScript, you can use Regular Expressions (RegExp) to ensure that user input follows the correct format. In this art
...read more
Web Technologies
JavaScript
HTML
CSS
JavaScript-RegExp
JavaScript-Questions
Blogathon
Blogathon-2021
JavaScript-Projects
Similar Topics
Web Technologies
40.3k+ articles
JavaScript
11.5k+ articles
HTML
5.1k+ articles
JavaScript-Questions
2k+ articles
JavaScript-Methods
520+ articles
JavaScript-DSA
480+ articles
javascript-string
240+ articles
javascript-functions
120+ articles
ES6
90+ articles
JavaScript-Properties
90+ articles
JavaScript - How to Mask All Characters Except the Last?
Last Updated: 07 December 2024
Here are the different methods to replace characters except the last with the specified mask character in JavaScript.1. Using slice() and re
...read more
Web Technologies
JavaScript
javascript-string
javascript-functions
Picked
JavaScript-DSA
JavaScript-RegExp
JavaScript-Questions
JavaScript - How to Replace Line Breaks With 'br' Tag?
Last Updated: 06 December 2024
Here are the different methods to replace line breaks with br tag in JavaScript.1. Using replace() with Regular ExpressionThe regular expres
...read more
Web Technologies
JavaScript
javascript-string
JavaScript-DSA
JavaScript-RegExp
JavaScript-Questions
JavaScript RegExp Reference
Last Updated: 05 December 2024
RegExp stands for Regular Expression. A regular expression is a sequence of characters that forms a search pattern. The search pattern can b
...read more
Web Technologies
JavaScript
JavaScript-RegExp
How to Validate Email Address using RegExp in JavaScript?
Last Updated: 15 April 2025
Validating an email address in JavaScript is essential for ensuring that users input a correctly formatted email. Regular expressions (RegEx
...read more
Web Technologies
JavaScript
JavaScript-RegExp
JavaScript - How To Check if String Contains Only Digits?
Last Updated: 06 December 2024
A string with only digits means it consists solely of numeric characters (0-9) and contains no other characters or symbols. Here are the dif
...read more
Web Technologies
JavaScript
JavaScript-RegExp
JavaScript - Validate URL in JS
Last Updated: 16 January 2025
We will explore different approaches to validating URLs in JavaScript. These approaches include using regular expressions (regex), the URL c
...read more
Web Technologies
JavaScript
JavaScript-RegExp
JavaScript RegExp exec() Method
Last Updated: 05 December 2024
The RegExp.exec() method in JavaScript allows you to search for a pattern in a string and retrieve detailed information about the match. Unl
...read more
Web Technologies
JavaScript
HTML
JavaScript-RegExp
JavaScript-Methods
JavaScript RegExp test() Method
Last Updated: 28 November 2024
The RegExp test() Method in JavaScript is used to test for match in a string. If there is a match this method returns true else it returns f
...read more
Web Technologies
JavaScript
JavaScript-RegExp
JavaScript-Methods
JavaScript RegExp \s Metacharacter
Last Updated: 06 December 2024
The \s metacharacter in JavaScript regular expressions matches any whitespace character. This includes spaces, tabs, form feeds, line breaks
...read more
Web Technologies
JavaScript
JavaScript-RegExp
JavaScript RegExp [0-9] Expression
Last Updated: 06 December 2024
The [0-9] expression in JavaScript regular expressions matches any single digit between 0 and 9. It is a character class used to represent a
...read more
Web Technologies
JavaScript
JavaScript-RegExp
JavaScript RegExp \W Metacharacter
Last Updated: 06 December 2024
The \W metacharacter in JavaScript regular expressions matches any character that is not a word character. A word character is defined as:An
...read more
Web Technologies
JavaScript
JavaScript-RegExp
JavaScript RegExp (Regular Expression)
Last Updated: 03 December 2024
A regular expression is a special sequence of characters that defines a search pattern, typically used for pattern matching within text. It'
...read more
Web Technologies
JavaScript
javascript-string
JavaScript-RegExp
1
2
3
4
5
>>
Last
1
2
3
4
5
>>
Last
1
2
3
4
>>
Last
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 !