Skip to content

Tag Archives: python-regex

While working with large sets of data, it often contains text data and in many cases, those texts are not pretty at all. The is… Read More
Let’s take a password as a combination of alphanumeric characters along with special characters, and check whether the password is valid or not with the… Read More
Given a string str, the task is to extract all the numbers from a string and find out the most occurring element of them using… Read More
Given a string str containing numbers and alphabets, the task is to find all the numbers in str using regular expression. Examples:Attention reader! Don’t stop… Read More
Write a Python Program to find sequences of one upper case letter followed by lower case letters. If found, print ‘Yes’, otherwise ‘No’. Examples: Attention geek!… Read More
Prerequisites : Regular Expressions | Set 1, Set 2 Given a string, the task is to check if that string contains any g followed by… Read More
Given a string, the task is to check if that string contains any special character (defined special character set). If any special character found, don’t… Read More
Prerequisite : Pattern Matching with Python Regex Given the URL text-file, the task is to extract all the email-ids from that text file and print… Read More
Let suppose a situation in which you have to read some specific data like phone numbers, email addresses, dates, a collection of words etc. How… Read More
Given an IP address, remove leading zeros from the IP address. Examples:Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts… Read More
Prerequisite : Pattern matching with Regular Expression In this article, we will need to accept a string and we need to check if the string… Read More
In this program, we will be taking a password as a combination of alphanumeric characters along with special characters, and check whether the password is… Read More
A string contains patterns of the form 1(0+)1 where (0+) represents any non-empty consecutive sequence of 0’s. Count all such patterns. The patterns are allowed… Read More
Given an alphanumeric string, extract maximum numeric value from that string. Alphabets will only be in lower case. Examples: Attention geek! Strengthen your foundations with the… Read More
Given an array of characters, which is basically a sentence. However, there is no space between different words and the first letter of every word… Read More

Start Your Coding Journey Now!