Month: May 2021

16 PDF Cheat Sheets for Programmers

A couple of years ago, I fell into the habit of creating cheat sheets when exploring certain areas in the programming space. Over time, hundreds of thousands of Finxters have downloaded and used them in their own learning journeys. However, the cheat sheets are largely scattered around many different locations on the Finxter ecosystem. And …

16 PDF Cheat Sheets for Programmers Read More »

Python Regex to Return String Between Parentheses

Problem Formulation Given a string s. How to find the substring s’ between an opening and a closing parentheses? Consider the following examples: Input: ‘Learn Python (not C++)’ Output: ‘not C++’ Input: ‘function(a, b, c, d)’ Output: ‘a, b, c, d’ Input: ‘(a+(b+c))’ Output: ‘a+(b+c)’ Method 1: Slicing and str.find() The simplest way to extract …

Python Regex to Return String Between Parentheses Read More »