Skip to content

Tag Archives: regular-expression

In Python, one could easily check the presence of a text string within another string. But, in some scenarios, we may not have the exact… Read More
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… Read More
Given a string str which has various HTML Entities in it, the task is to replace these entities with their corresponding special character. HTML entity… Read More
Given a string in camel case, the task is to write a Java program to convert the given string from camel case to snake case… Read More
Given numeric string str, the task is to remove all the leading zeros from a given string. If the string containing only zeros, then print… Read More
Given a number N, the task is to check first whether the given number is binary or not and its value should be greater than… Read More
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… Read More
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… Read More
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… Read More
Given string str, the task is to check whether the given string contains 3 or more consecutive identical characters/numbers or not by using Regular Expression. Examples: … Read More
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… Read More
Given string str, the task is to check whether the given string is valid GUID (Globally Unique Identifier) or not by using Regular Expression.The valid… Read More
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… Read More
Regular expressions (RegExp) are patterns used to match character combinations in strings. In JavaScript, regular expressions are also objects. There are two ways to construct… Read More