Skip to content
Coder's Jungle

An educational website for programmers, coders and web developers. WordPress news, tutorials and pro tips selected by Coder's Jungle. The site aggregates articles from official RSS feeds under their original authorship. Each article has a do-follow link to the original source.

  • Home
  • Home
Home » String Substitution
Advanced Substitution with re.subn – Python Lore
Posted inCoding Tips

Advanced Substitution with re.subn – Python Lore

March 17, 2024

Harness the power of Python's re.subn() function to easily perform search and replace operations on strings using regular expressions. Keep track of the number of substitutions made with this powerful tool, aiding in debugging and further processing within your code. Master advanced substitution techniques with re.subn().

The post Advanced Substitution with re.subn appeared first on Python Lore.

Read More
Substituting Strings with re.sub
Posted inCoding Tips

Substituting Strings with re.sub

January 26, 2024

Substituting Strings with re.sub: Python's re module offers the versatile re.sub() function for string replacements and pattern-based substitutions. Learn how to use regular expressions to search for and replace specific patterns in a string, with advanced techniques, special cases, and best practices included.

The post Substituting Strings with re.sub appeared first on Python Lore.

Read More
Post You Might Like
How to check if a variable is undefined in JavaScript
Posted inJavaScript
How to check if a variable is undefined in JavaScript
How to composite and mask images using Pillow in Python
Posted inPython
How to composite and mask images using Pillow in Python
File Compression and Archiving in Bash
Posted inCoding Tips
File Compression and Archiving in Bash
Creating Dummy Variables with pandas.get_dummies
Posted inPython
Creating Dummy Variables with pandas.get_dummies
Copyright (c) 2023-2026 | Coder's Jungle. All rights reserved.
Scroll to Top
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.