Blog

Page 567 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Why does a RegExp with global flag give wrong results?
javascriptregex

Why does a RegExp with global flag give wrong results?

Published on September 2, 2023

# Why does a RegExp with global flag give wrong results? Have you ever encountered a situation where a regular expression with the global flag (`g`) doesn't provide the expected results? šŸ˜• Well, you're not alone! Many developers have faced this issue, an

Cover Image for Searching for UUIDs in text with regex
regex

Searching for UUIDs in text with regex

Published on September 2, 2023

# šŸ” Searching for UUIDs in Text with Regex: Solving Common Issues Are you on a quest to find those elusive UUIDs hidden within blocks of text? Look no further! In this blog post, we'll address common issues and provide easy solutions to help you successf

Cover Image for Regular expression to search for Gadaffi
regex

Regular expression to search for Gadaffi

Published on September 2, 2023

# 🧐 Searching for Gadaffi: A Regex Adventure! So, you're on a quest to search for the word "Gadaffi," but there's a twist - it can be spelled in many different ways! šŸ•µļøā€ā™‚ļø Fear not, intrepid reader, for I shall guide you through the treacherous lands of

Cover Image for regex.test V.S. string.match to know if a string matches a regular expression
javascriptperformanceregex

regex.test V.S. string.match to know if a string matches a regular expression

Published on September 2, 2023

## Is there a difference between `regex.test` and `string.match`? šŸ”Ž Understanding Regular Expression Matching Methods in JavaScript Regular expressions are powerful tools used for pattern matching in strings. In JavaScript, there are two commonly used m

Cover Image for How to install pip with Python 3?
packagepippythonpython-3.x

How to install pip with Python 3?

Published on September 2, 2023

šŸ”§ **How to Install Pip with Python 3: A Simple Guide** šŸ”§ So, you want to install pip with Python 3, but you're facing a little hiccup. You see, pip requires setuptools, which unfortunately is only available for Python 2. But don't worry, we've got you c

Cover Image for I want to remove double quotes from a String
javascriptregex

I want to remove double quotes from a String

Published on September 2, 2023

# Removing Double Quotes From a String: A Quick Guide! ✨ Have you ever found yourself in a situation where you need to remove those pesky double quotes from a string? Whether you're a seasoned developer or just starting out, dealing with string manipulati

Cover Image for Using String Format to show decimal up to 2 places or simple integer
c#number-formattingregexstring-formatting

Using String Format to show decimal up to 2 places or simple integer

Published on September 2, 2023

# Using String Format to Show Decimal up to 2 Places or Simple Integer: A Complete Guide šŸ˜ŽšŸ’² Do you have a price field that needs to display decimal values up to two places or a simple integer? Are you struggling to find the right solution to format the

Cover Image for How can I output only captured groups with sed?
regex

How can I output only captured groups with sed?

Published on September 2, 2023

# How to Output Only Captured Groups with `sed` Have you ever wondered how to extract specific parts of a text using `sed`? šŸ¤” Well, you're in the right place! In this guide, we will go through a common issue: how to output only captured groups using `sed

Cover Image for Match whitespace but not newlines
regex

Match whitespace but not newlines

Published on September 2, 2023

# How to Match Whitespace but Not Newlines: A Handy Guide šŸ˜ŽšŸ’» Matching whitespace in a string is a common task in many programming languages. But what if you only want to match spaces and tabs, without matching newlines? šŸ¤” Well, we've got you covered! I

Cover Image for Remove all special characters, punctuation and spaces from string
pythonregexstring

Remove all special characters, punctuation and spaces from string

Published on September 2, 2023

# How to Remove Special Characters, Punctuation, and Spaces from a String Are you tired of dealing with special characters, punctuation, and spaces in your strings? Do you just want the clean, crisp letters and numbers? Well, you're in luck! In this guid