Md Waqar Tabish has Published 27 Articles

What is Raw String Notation in Python regular expression?

Md Waqar Tabish

Md Waqar Tabish

Updated on 02-Nov-2023 20:45:56

4K+ Views

Introduction A regular expression is a word that is frequently abbreviated as regex. Regex is a set of characters that specifies a search pattern and is mostly used in text processors and search engines to execute find and replace operations. When a string in Python is prefixed with the letter ... Read More

How do we use Python regular expression to match a date string?

Md Waqar Tabish

Md Waqar Tabish

Updated on 02-Nov-2023 14:18:49

4K+ Views

Introduction Programming languages frequently employ date inputs to obtain user data, such as birthdates, travel dates, reservation dates, etc. These dates given by the user may be immediately verified as legitimate using regular expressions. To determine whether a text has a valid date format and to extract a valid date ... Read More

How to optimize the performance of Python regular expression?

Md Waqar Tabish

Md Waqar Tabish

Updated on 02-Nov-2023 14:14:07

2K+ Views

Introduction A regular expressions -specific built-in library named re exists in Python. You only need to import it to use its features (such as search, match, findall, etc.). They'll provide you back a Match object with helpful techniques for modifying your outcomes. According to Wikipedia, regular expressions (also known as ... Read More

Why do we use question mark literal in Python regular expression?

Md Waqar Tabish

Md Waqar Tabish

Updated on 02-Nov-2023 14:01:58

2K+ Views

Introduction The question mark makes the previous token in the regular expression optional. For example: colou?r is complementary to both colour and colour. A quantifier is what the question mark is known as. You may make multiple tokens optional by combining numerous tokens in parentheses and adding the question mark ... Read More

How can I use Python regex to split a string by multiple delimiters?

Md Waqar Tabish

Md Waqar Tabish

Updated on 02-Nov-2023 13:48:28

20K+ Views

Classes that encompass a collection of characters are known as regular expression classes. One of these classes, d, which matches any decimal digit, will be used. Learning how to split data may be valuable. Data arrives in various kinds and sizes, and it's sometimes not as clean as we'd like. ... Read More

How to extract date from text using Python regular expression?

Md Waqar Tabish

Md Waqar Tabish

Updated on 02-Nov-2023 13:42:10

9K+ Views

We must first understand some regular expression fundamentals as we will use them. There are various ways to declare patterns in regular expressions, which might make them appear complex but are pretty simple. Regular expressions are patterns that can be used to match strings that adhere to that pattern. You ... Read More

How can I subtract a day from a Python date?

Md Waqar Tabish

Md Waqar Tabish

Updated on 27-Aug-2023 12:44:08

23K+ Views

Introduction It is essential to have a module that can modify date and time since, as we all know, they are utilized in applications where we must keep track of date and time. A DateTime module in Python deals with dates and times (Python Date/Time Tutorial). Python comes with a ... Read More

How to Calculate Trace of a Matrix using numpy in Python?

Md Waqar Tabish

Md Waqar Tabish

Updated on 26-Jul-2023 14:38:08

130 Views

Calculating the trace of a matrix using Numpy is a common operation in linear algebra that can be used to extract important information about the matrix. The trace of a matrix is defined as the sum of the elements on the matrix's main diagonal, which runs from the top left ... Read More

How to Calculate the Determinant of a Matrix or ndArray using numpy in Python?

Md Waqar Tabish

Md Waqar Tabish

Updated on 26-Jul-2023 14:23:01

2K+ Views

In this article, we will learn how to calculate the determinant of a matrix using the numpy library in Python. The determinant of a matrix is a scalar value that can represent the matrix in a compact form. It is a useful quantity in linear algebra, and it has several ... Read More

How can I get a Python job as a fresher?

Md Waqar Tabish

Md Waqar Tabish

Updated on 26-Jul-2023 14:19:34

418 Views

Introduction As a fresher, it can be challenging to break into the tech industry and secure a job as a Python developer. However, it is possible with the right combination of skills, experience, and determination. Here are a few steps you can take to increase your chances of getting a ... Read More

Advertisements