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
Edward Obohedwardoboh.hashnode.dev·Jun 29, 2024Comparing fnmatch and regexPattern matching is a fundamental aspect of text processing, enabling powerful searches and manipulations in various applications. Two common methods for pattern matching are fnmatch and regex. Each has its strengths and limitations, and understandin...Discussfnmatch
Alex MboutchouangforAlex Mboutchouangblog.alexwalker.tech·May 27, 2024Python structural pattern matchingIn the list of new features when version 3.10 of Python was announced, structural pattern matching was one of the most innovative features for me. While most people describe that as the Switch...case Pattern that we know in other popular programming ...DiscussPython
Sushant Pantsushantpant.com.np·Mar 22, 2024Pattern Matching, Switch Expression and MoreOne of the major feature of C# version 7.0 was pattern matching. Pattern matching is a way to recognize structure or pattern within some context. Think of pattern matching like a simple puzzle where you examine the pieces and look for matching edges ...Discuss·10 likes·173 readspattern-matching
Jindřich Ivánekjindraivanek.hashnode.dev·Jan 18, 2024F# tips weekly #2: Single case pattern matchEvery F# programmer is likely familiar with pattern matching using the match keyword, as illustrated below: match x with | Some 0 -> "Zero" | Some n when n > 0 -> "Positive" | Some n when n < 0 -> "Negative" | None -> "Unknown" However, a less well-...Christian Steinert and 1 other are discussing this2 people are discussing thisDiscuss·4 likes·578 readsF# tips weekly#fsharp
Slawomir Moriakslamcode.hashnode.dev·Jan 2, 2024Resources to types with 'infer'Learn how you can make any string-based resource into a TypeScript type, and make the compiler do the hard work of checking the data for you. The magic of pattern matching in conditional types with the help of infer keyword is the topic for today. Ca...Discuss·27 readsTypescript magicTypeScript
Oluwatobi Oluyedeyuzr.hashnode.dev·Dec 17, 2023Pattern Matching with JavaScript Regular Expressions: An IntroductionIn the intricate world of web development, the mastery of Regular Expressions opens the door to a world of powerful pattern matching. From validating user input to searching and manipulating strings, regular expressions serve as the linchpin for craf...DiscussJavaScript Regular ExpressionsJavaScript
Raineraineyang.hashnode.dev·Dec 10, 2023Rust Learning Note: Pattern MatchingThis blog is a summay of Chapter 2.6 and 2.7 of Rust Course (https://course.rs/) match expression The match expression follows the grammar below: match target { pattern1 => expression1, // returns expression 1 if target matches pattern1 pa...Discussrust match
Phakorn KiongProblog.phakorn.com·Aug 19, 2023Bringing Pattern Matching to GoIn the realm of software development, the concept of declarative code branching emerges as a powerful approach to managing complexity and conditional logic. Declarative branching shifts the focus from intricate, imperative if-else constructs to a mor...Discuss·10 likes·293 readsGo Language
Robertrobgev.hashnode.dev·Aug 1, 2023FeaturedPattern Matching in TypeScript: Tuples and RecordsIntro As mentioned in my previous article, while being on a vacation and work-free I decided to challenge myself with implementing pattern matching in TypeScript. While sitting in airports and planes and shuttles and between all the dancing workshops...Sandeep Panda and 4 others are discussing this5 people are discussing thisDiscuss·31 likes·413 readsFunctional Programming