Nikitasha Shrivastava has Published 70 Articles

How to add space before and after specific character using regex in Python?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 24-Apr-2025 14:45:37

2K+ Views

When working with text data in Python, we normally need to interact with strings to make them readable or properly formatted. It is very common way to use regular expressions or regex to add spaces before and after a particular character. In this article we will see how to do ... Read More

How regular expression grouping works in Python?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 24-Apr-2025 14:34:35

792 Views

To extract decimal numbers from a string in Python, regular expressions are used. A regular expression is a group of characters that allows you to use a search pattern to find a string or a set of strings. RegEx is another name for regular expressions. The re module in Python ... Read More

How to specify repetitions Regex in Python?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 24-Apr-2025 13:21:59

2K+ Views

A regular expression is a series of characters that allows you to discover a string or a set of strings using a search pattern. Regular expressions are sometimes known as RegEx. In Python, the re module is used to work with regular expressions. We can use repetitions in regular expression ... Read More

How to match pattern over multiple lines in Python?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 24-Apr-2025 13:09:14

14K+ Views

Learning Python's Regular Expressions (Regex) may require you to match text that has multiple lines. This can happen when you want to read information from a file or scrape data from a website. This chapter will show you how to match patterns across several lines using Python's re module, which ... Read More

What is the groups() method in regular expressions in Python?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 24-Apr-2025 12:33:32

11K+ Views

In Python, we can use regular expressions when looking for patterns in text. So we have a useful method called groups() in Python. This method helps us to find and manage many parts of a pattern. So in this article will explain how the groups() method works. The groups() Method ... Read More

How to match any one lowercase vowel in python using Regular Expression?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 24-Apr-2025 11:35:43

1K+ Views

In this article, you will learn how to match any single lowercase vowel (a, e, i, o, u) using Python regular expressions (regex). We will understand how to use Python's re module to apply a pattern that finds these vowels in a string. Ways to Match Lowercase There are two ... Read More

How to match a single character in python using Regular Expression?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 24-Apr-2025 10:46:44

2K+ Views

A single character can be matched in Python using a regular expression. A regular expression is a sequence of characters that helps you find a string or a set of strings using a search pattern. Regular expressions are also known as RegEx. Python provides the re module that is used ... Read More

How to match any one uppercase character in python using Regular Expression?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 23-Apr-2025 14:49:17

2K+ Views

There are two ways to match any one uppercase character in python using Regular Expression. One is the general method and other is using the regular expression. A regular expression is a series of characters that allows you to discover a string or a set of strings using a search ... Read More

What are the differences between “untyped” & “dynamically typed” programming languages?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 23-Apr-2025 14:42:23

2K+ Views

When learning different programming languages, you may come across terms like untyped and dynamically typed. While they may sound similar but they have different concepts in how programming languages manage data types. In this article, we will see these concepts in simple terms with simple examples. Untyped Language Untyped ... Read More

why Python can\'t define tuples in a function?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 23-Apr-2025 14:33:50

329 Views

In Python tuples are an important data structure that allows you to group many values together. But some beginners may find it confusing to use tuples inside functions. This article will explain what tuples are and how to use them properly in functions. We will also discuss some real-world examples, ... Read More

Advertisements