Blog

Page 608 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for How to do a non-greedy match in grep?
command-lineregexshell

How to do a non-greedy match in grep?

Published on September 2, 2023

# How to Catch 'em All: Unleashing the Power of Non-Greedy Matches in `grep` *Are you tired of hunting for specific patterns in your text files, only to have `grep` grab the longest match instead? Don't fret! In this guide, we'll teach you the art of non-

Cover Image for How to use concerns in Rails 4
ruby-on-rails

How to use concerns in Rails 4

Published on September 2, 2023

# How to Use Concerns in Rails 4: A Quick and Easy Guide šŸš€ Are you confused about how to make the most out of concerns in your Rails 4 project? Look no further! In this blog post, we'll demystify the concept of concerns, provide easy-to-follow solutions

Cover Image for Postgres could not connect to server
macosruby-on-rails

Postgres could not connect to server

Published on September 2, 2023

# Postgres Could Not Connect to Server: Easy Solutions šŸ“š Welcome to my tech blog! Today we are going to address a common issue that many Postgres users face: "Postgres could not connect to server." If you've encountered this error message, don't worry,

Cover Image for Convert a char to upper case using regular expressions (EditPad Pro)
regex

Convert a char to upper case using regular expressions (EditPad Pro)

Published on September 2, 2023

# How to Convert a Character to Uppercase Using Regular Expressions in EditPad Pro 🌟 Are you struggling to convert lowercase characters to uppercase in a long text file? Is it causing issues in your case-sensitive application? Don't worry; we've got you

Cover Image for Regex - Should hyphens be escaped?
regex

Regex - Should hyphens be escaped?

Published on September 2, 2023

šŸ“ **Regex - Should hyphens be escaped?** āœ… Common Issues: Hyphens are special characters in regex. They are used to select a range within square brackets. But how do they behave outside of square brackets? Do they need to be escaped or not? Let's find ou

Cover Image for Python extract pattern matches
pythonregex

Python extract pattern matches

Published on September 2, 2023

# šŸ˜Ž Python Extract Pattern Matches: A Handy Guide If you've ever found yourself trying to extract specific patterns from a string using regular expressions in Python, you're not alone. It can be a bit tricky, but fear not! In this guide, we'll walk you t

Cover Image for Replacing all non-alphanumeric characters with empty strings
javaregex

Replacing all non-alphanumeric characters with empty strings

Published on September 2, 2023

šŸ“ **Tech Blog: Removing Non-Alphanumeric Characters Made Easy! šŸ˜Ž** Are non-alphanumeric characters giving you a hard time? Don't fret! In this blog post, we'll tackle the common issue of replacing all non-alphanumeric characters with empty strings and p

Cover Image for Extract part of a regex match
htmlpythonregex

Extract part of a regex match

Published on September 2, 2023

# Extract Part of a Regex Match: A Simple Guide 🧩 Are you tired of manually removing HTML tags after extracting content from a webpage using regular expressions? We've got you covered! In this blog post, we'll show you how to extract just the contents of

Cover Image for Regular expression to match standard 10 digit phone number
regex

Regular expression to match standard 10 digit phone number

Published on September 2, 2023

# Easy-peasy Phone Number Regular Expression šŸ“ž Alright, folks! šŸŽ‰ Today, we're diving into the exciting world of regular expressions and tackling a common problem: matching standard 10-digit phone numbers. šŸ’Ŗ Whether you're a tech geek or just a curious

Blog | Matheus Mello