Skip to content

Tag Archives: Python Regex-programs

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: Input : Output : Input : Output : Recommended: Please… 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: Input : 100klh564abc365bg Output : 564… 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
Prerequisite: Regular Expressions in Python You may be familiar with searching for text by pressing ctrl-F and typing in the words you’re looking for. Regular… Read More