Maxi Contierimaximilianocontieri.com·Oct 24, 2024Code Smell 276 - Untested Regular ExpressionsRegex Without Tests is Asking for Trouble - Don't be lazy. It is free with AI! TL;DR: Use clear and concise regular expressions, and test them thoroughly. Problems Readability No test cases Missed edge cases Debugging challenges Unclear failures H...DiscussCode Smellscode smell
Emre Kanbaykanby.hashnode.dev·Oct 1, 2024Regex Cheat Sheet - Regular Expressions TutorialThis blog post is firstly published on my personal blogging site kanby.net TL;DR Most common regex patterns Examples of regex patterns Most Common Patterns Important: a x b in this example a is preceeding by x and b is followed by x ^ means s...DiscussRegular Expressions
Zeeshan Safdarzeeshansafdar.hashnode.dev·Sep 16, 2024Regular Expressions in JavaScriptA Regular Expression (or Regex) is a sequence of characters that we can use to target and manipulate certain elements in strings. Hence, we can: Search for a text in a string Replace substrings in a string Extract information from a string 💡 J...DiscussJavaScript
Brian Nesscodeahead.hashnode.dev·Sep 3, 2024Readable Regular ExpressionsIntroduction At a previous job, I was asked to participate on a technical interview of a new developer candidate. Mid-way through the interview our manager joined. I was new to the company myself, and when it was my turn to ask questions, I asked t...Discuss·30 readsRegular Expressions
Rabah Taibtr20.hashnode.dev·Aug 30, 2024How to Match Escaped and Non-Escaped Characters with Regex💡 We'll use (@) as the target character in these examples. Match a non-escaped character Final result const regexp = /(?<=(?<!\\)(?:\\{2})*)@/ Though process First, let's start with the most common solution: a regular expression that matches (@)...DiscussJavaScript
Asfaq Leeonleeonscoding.hashnode.dev·Aug 12, 2024A simple regular expression exampleOnce upon a time, simple regex patterns are really hard to understand to me. But now-a-days, I can write simple regex patterns comfortably. Few weeks ago, I also have written a complex one. Today I'm going to share how I approach a regex problem. Tod...DiscussRegex
yarnmiyarnmi.hashnode.dev·Jul 18, 2024퀴즈를 통해 정규표현식 익히기퀴즈 1 인풋: "The quick brown fox jumps over the lazy dog." 요구사항: 모든 단어를 추출하시오. 정규표현식 : /\b\w+\b/g 설명 : 단어 경계 사이에 있는 하나 이상의 단어 포함하는 모든 단어 추출 퀴즈 2 인풋: "Contact us atsupport@example.com or sales@example.org" 요구사항: 모든 이메일 주소를 추출하시오. 정규표현식 : /[a-zA-Z0-9._%+-...DiscussRegular Expressions
Vukani Gcabashevukanig.hashnode.dev·Jul 2, 2024Understanding Regular Expressions (Regex)Introduction Regular expressions, commonly known as regex, are powerful tools we use for pattern matching within strings when we are trying to perform operations on a string. Some of the useful ways to use it include: search, edit, and manipulate tex...DiscussRegular Expressions
Simon Ugorjioctagon.hashnode.dev·Jun 28, 2024A Recent Backend Problem That I Had To SolveLet us assume that you are working on a backend project with NodeJS and this project has lots of API endpoints that need strict validation on each of the routes. How best would you validate these endpoints and still return a user-friendly error to th...Discussbackend
Emeron Marcelleemerondomain.hashnode.dev·Jun 23, 2024Understanding Regular Expressions in PythonRegular expressions (regex) are a powerful tool for matching patterns in text. Python's re module provides support for working with regular expressions, allowing you to search, match, and manipulate strings with ease. In this blog post, we will explo...DiscussRegular Expressions