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
Misc
8.8K+ articles
C++
4.3K+ articles
Strings
3.3K+ articles
STL
1.3K+ articles
Pattern Searching
623+ articles
java-regular-expression
92+ articles
regular-expression
89+ articles
cpp-class
57+ articles
CPP-regex
423+ posts
Recent Articles
Popular Articles
How to validate CVV number using Regular Expression
Last Updated: 21 December 2022
Given string str, the task is to check whether it is a valid CVV (Card Verification Value) number or not by using Regular Expression.The valid CVV (Card Verification Value...
read more
Strings
Pattern Searching
DSA
java-regular-expression
CPP-regex
regular-expression
Program to remove HTML tags from a given String
Last Updated: 21 December 2022
Given a string str that contains some HTML tags, the task is to remove all the tags present in the given string str.Examples:Input: str = "divbGeeks for Geeks/b/div"Output...
read more
Strings
DSA
java-regular-expression
HTML-Tags
CPP-regex
regular-expression
How to validate MasterCard number using Regular Expression
Last Updated: 20 December 2022
Given string str, the task is to check whether the given string is a valid Master Card number or not by using Regular Expression.The valid Master Card number must satisfy ...
read more
Strings
Pattern Searching
DSA
java-regular-expression
CPP-regex
regular-expression
How to validate Visa Card number using Regular Expression
Last Updated: 20 December 2022
Given a string str, the task is to check whether the given string is a valid Visa Card number or not by using Regular Expression.The valid Visa Card number must satisfy th...
read more
Strings
Pattern Searching
DSA
java-regular-expression
CPP-regex
regular-expression
How to validate Indian Passport number using Regular Expression
Last Updated: 13 August 2024
Given a string str of alphanumeric characters, the task is to check whether the given string is a valid passport number or not by using Regular Expression.A valid passport...
read more
Strings
Pattern Searching
DSA
java-regular-expression
CPP-regex
regular-expression
How to validate MAC address using Regular Expression
Last Updated: 22 December 2022
Given string str, the task is to check whether the given string is a valid MAC address or not by using Regular Expression.A valid MAC address must satisfy the following co...
read more
Strings
Pattern Searching
Computer Networks
DSA
Computer Networks-IP Addressing
java-regular-expression
CPP-regex
regular-expression
How to validate GUID (Globally Unique Identifier) using Regular Expression
Last Updated: 19 December 2022
Given string str, the task is to check whether the given string is a valid GUID (Globally Unique Identifier) or not by using Regular Expression.The valid GUID (Globally Un...
read more
Strings
Pattern Searching
DSA
java-regular-expression
CPP-regex
regular-expression
How to validate Indian driving license number using Regular Expression
Last Updated: 23 December 2022
Given string str, the task is to check whether the given string is a valid Indian driving license number or not by using Regular Expression.The valid Indian driving licens...
read more
Strings
Pattern Searching
DSA
java-regular-expression
CPP-regex
regular-expression
How to find index of any Currency Symbols in a given string
Last Updated: 11 April 2023
Given a string txt, the task is to find the index of currency symbols present in the given string.Examples:Input: txt = "Currency symbol of USA is $";Output: 26Explanation...
read more
Strings
Pattern Searching
Searching
DSA
java-regular-expression
CPP-regex
regular-expression
How to validate an IP address using ReGex
Last Updated: 15 February 2023
Given an IP address, the task is to validate this IP address with the help of Regex (Regular Expression) in C++ as a valid IPv4 address or IPv6 address. If the IP address ...
read more
Strings
Searching
Computer Networks
DSA
IP Addressing
python-regex
java-regular-expression
CPP-regex
regular-expression
Check if an URL is valid or not using Regular Expression
Last Updated: 07 December 2022
Given a URL as a character string str of size N.The task is to check if the given URL is valid or not.Examples :Input : str = "https://www.geeksforgeeks.org/"Output : YesE...
read more
Strings
Pattern Searching
DSA
python-regex
java-regular-expression
CPP-regex
Java-URL
regular-expression
Program to insert dashes between two adjacent odd digits in given Number
Last Updated: 27 January 2023
Given a large number in form of string N, the task is to insert a dash between two adjacent odd digits in the given number in form of strings.Examples:Input: N = 1745389Ou...
read more
Strings
Pattern Searching
C++ Programs
DSA
number-digits
java-regular-expression
CPP-regex
regular-expression
Check if given email address is valid or not in C++
Last Updated: 26 October 2020
Given a string email that denotes an Email Address, the task is to check if the given string is a valid email id or not. If found to be true, then print "Valid". Otherwise...
read more
Misc
Strings
DSA
CPP-regex
regular-expression
Count occurrences of a word in string | Set 2 (Using Regular Expressions)
Last Updated: 15 February 2023
Given a string str and a word w, the task is to print the number of the occurrence of the given word in the string str using Regular Expression.Examples:Input: str = "pete...
read more
Strings
Pattern Searching
C++
DSA
CPP-regex
regular-expression
How to Replace Text in a String Using Regex in C++?
Last Updated: 08 February 2024
Regular expressions or what we can call regex for short are sequences of symbols and characters that create a search pattern and help us to find specific patterns within a...
read more
C++ Programs
C++
Picked
CPP-regex
cpp-strings
CPP Examples
1
2
3
4
...
29
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 !