Blog

Page 574 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for What do "lazy" and "greedy" mean in the context of regular expressions?
regex

What do "lazy" and "greedy" mean in the context of regular expressions?

Published on September 2, 2023

# Demystifying 'Lazy' and 'Greedy' in Regular Expressions šŸ’” Have you ever come across the terms 'lazy' and 'greedy' when working with regular expressions and wondered what they actually mean? šŸ¤” Don't worry, I've got you covered! In this blog post, we'll

Cover Image for Find and kill a process in one line using bash and regex
regexterminal

Find and kill a process in one line using bash and regex

Published on September 2, 2023

### How to Find and Kill a Process in One Line using Bash and Regex šŸ˜ŽšŸ”Žā˜ ļø Do you often find yourself needing to kill a process while programming? šŸ’»šŸ˜© We understand the struggle! The traditional method of finding the process ID (PID) and then using the `

Cover Image for Regular expression to stop at first match
regex

Regular expression to stop at first match

Published on September 2, 2023

## Don't Stop at the First Match? Let's Fix that with Regular Expressions! šŸ§©šŸ’„ Regular expressions are these powerful little beasts that can help you find, match, and extract specific patterns in text. But what happens when you only want to stop at the f

Cover Image for Regular expression for alphanumeric and underscores
regex

Regular expression for alphanumeric and underscores

Published on September 2, 2023

šŸ‘‹ Hey there tech lovers! šŸ˜„ Are you tired of struggling with regular expressions to validate if a string contains only alphanumeric characters and underscores? šŸ¤” Well, worry no more! In this blog post, we're going to dive into this common issue and provi

Cover Image for How to negate specific word in regex?
regex

How to negate specific word in regex?

Published on September 2, 2023

šŸ“ **Tech Blog** šŸ” **How to Negate a Specific Word in Regex?** 🚫 Are you tired of negating a group of characters in regex, only to find out that it also excludes the specific word you want to match? 😩 Well, you're in luck! In this blog post, we'll dis

Cover Image for How to count string occurrence in string?
javascriptregexstring

How to count string occurrence in string?

Published on September 2, 2023

# Easy Ways to Count String Occurrences in JavaScript Are you tired of manually counting the number of times a specific string appears in a larger string? šŸ¤” Don't worry! We've got you covered. In this blog post, we'll explore some easy solutions to count

Cover Image for How can I match "anything up until this sequence of characters" in a regular expression?
regex

How can I match "anything up until this sequence of characters" in a regular expression?

Published on September 2, 2023

# Matching Anything Up Until This Sequence of Characters in a Regular Expression Are you struggling to find a solution to match everything up until a specific sequence of characters in a regular expression? Look no further! We've got you covered with an e

Cover Image for How to validate phone numbers using regex
regexvalidation

How to validate phone numbers using regex

Published on September 2, 2023

# šŸ“± How to Validate Phone Numbers Using Regex Are you tired of dealing with invalid phone numbers in your application? Struggling to find a comprehensive solution to validate phone numbers? Look no further! In this blog post, I will guide you through the

Cover Image for Regular Expressions: Is there an AND operator?
regex

Regular Expressions: Is there an AND operator?

Published on September 2, 2023

šŸ”Ž Demystifying Regular Expressions: The Elusive AND Operator šŸŽÆ So, you've mastered the basics of regular expressions and are now on the hunt for the elusive AND operator. You've used the | (pipe) symbol to signify OR, but how can you accomplish the same

Cover Image for What is the best regular expression to check if a string is a valid URL?
regexurl

What is the best regular expression to check if a string is a valid URL?

Published on September 2, 2023

šŸ“āœØ Title: "Cracking the Code: The Ultimate Regular Expression to Validate URLs" Intro: šŸ‘‹ Hey there, fellow tech enthusiasts! Today, we're diving into the fascinating world of regular expressions (regex) and unraveling the mystery of finding the best reg