Aakashi Jaiswalaakashi.hashnode.dev·Dec 17, 2024The Language of Machines: Finite Automata and Their Role in ComputingFinite Automata Definition of Finite Automata Finite automata (FA) are simple computational models used to recognize patterns in input strings. They consist of a finite number of states and transition between these states based on input symbols. The...11 likesFinite Automata
Pratiksha Satputepratikshasatpute.hashnode.dev·Dec 14, 2024Day 4 of Python for devopsWhat are Regular Expressions? A regular expression (regex) is a sequence of characters that defines a search pattern. It is widely used for text processing tasks, such as matching, searching, and extracting specific text patterns from data. Python’s ...#pratikshasatpute
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...Code 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...Regular 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...JavaScript
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...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 (@)...JavaScript
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...Regex
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._%+-...Regular 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...Regular Expressions