This article introduces the JDK 14 release, lists its sixteen new features—including pattern‑matching instanceof, switch expressions, record types, and text blocks—explains required IDE support, and provides concrete code examples and usage guidelines for each feature.
The article introduces the major Java 14 enhancements—including standard switch expressions, preview pattern matching for instanceof, more informative NullPointerExceptions, preview records, text blocks, and several JVM and library improvements—while providing code examples that illustrate how each feature simplifies Java development.
On March 17, JDK 14 was officially released, bringing 16 new JEPs—including pattern‑matching for instanceof, a new packaging tool, enhanced G1 memory allocation, JFR event streaming, helpful NullPointerExceptions, records, switch expressions, ZGC on macOS/Windows, and a second preview of Text Blocks—significantly expanding Java’s core capabilities.
This article outlines the five major preview features slated for Java 14, including instanceof pattern matching, text blocks with new escape sequences, record types, the incubating jpackage tool, and the deprecation of the ParallelScavenge + SerialOld garbage collector combination.
This article provides a clear, step‑by‑step tutorial on regular expressions—covering fundamental metacharacters, quantifiers, grouping, alternation, character classes, assertions, capturing, back‑references, greedy vs. lazy matching, and includes runnable code snippets in Java and JavaScript for common validation tasks.
This article provides a comprehensive guide to regular expressions, covering basic concepts, character classes, quantifiers, special symbols, greedy vs. lazy matching, backreferences, lookahead/lookbehind assertions, and practical tips for writing robust patterns in programming.
This article provides a comprehensive collection of regular expression patterns for validating various numeric formats, character sets, and special input requirements such as email addresses, URLs, phone numbers, IDs, passwords, dates, and IP addresses, with clear examples for each case.
This article explains Scala extractors, showing how the apply and unapply methods work, provides code examples for email address extraction, and demonstrates their use in pattern‑matching scenarios.
This article explains Scala's powerful pattern matching mechanism, demonstrates matching on integers, strings, and types with code examples, compares it to Java's switch, and introduces case classes as special classes optimized for pattern matching, highlighting their automatically generated methods and usage.
This article provides a comprehensive introduction to AWK, covering its origins, basic syntax, command‑line usage, built‑in variables, printing functions, programming constructs such as conditionals, loops, and arrays, and includes numerous practical examples for extracting and formatting data on Linux systems.
This article provides a comprehensive guide to Python’s re module, covering regex definitions, common methods, special character sets, pattern‑matching functions, match object attributes, and practical code examples for tasks such as validating phone numbers, IP addresses, and HTML snippets.
This tutorial walks you through building and testing regular expressions for common patterns such as floating‑point numbers, optional fractions, exponents, phone numbers, email addresses, and simple HTML tags, explaining each step and showing practical examples.
This article provides a comprehensive guide to Python regular expressions, covering regex syntax, character classes, quantifiers, groups, assertions, conditional matches, flags, the re module’s core functions, match object methods, and practical examples for effective pattern matching.
This article walks through building and refining a Python regular expression that reliably matches a wide range of Chinese date formats—including year‑month‑day, year/month/day, and year‑month—explaining each component, testing against sample strings, and presenting the final pattern that captures all cases.
This article revisits Python’s re module, covering functions like re.search, re.match, and re.sub, explaining common regex symbols, quantifiers, character classes, grouping, and findall usage, with clear examples and illustrations to help beginners master regular expression patterns.
This article explains how to use the special regex character [\u4E00-\u9FA5] to match Chinese characters in Python, covering single and multiple character matching, handling spaces and non‑Chinese symbols, and practical examples such as extracting university names.
This article explains how Python’s regex quantifiers '+' and '*' differ, demonstrating with step‑by‑step examples how '+' requires at least one occurrence of the preceding character, while '*' allows zero or more, and shows the resulting matches through clear screenshots.
This article explains how Python’s regular expression quantifier “{}” works, detailing its three forms—{n}, {n,}, and {n,m}—and demonstrates each with clear examples and visual illustrations to help readers master precise pattern matching.
This article explains the difference between the regex quantifiers "+" and "*" in Python, showing how each affects pattern matching through step‑by‑step examples and visual results.
This tutorial introduces regular expressions across programming languages, covering fundamental metacharacters, quantifiers, grouping, alternation, character classes, assertions, capturing, backreferences, greedy vs. lazy matching, and provides practical Java code examples for common validation tasks.
This article introduces Python's regular expression engine, explains the syntax of regex patterns, lists special metacharacters, and demonstrates core re module functions such as compile, match, search, findall, finditer, split, and sub with practical code examples.
This guide explains Python regular expression fundamentals, covering character classes, quantifiers, groups, assertions, conditional matches, regex flags, and the essential methods of the re module, providing clear examples and practical tips for effective pattern matching and text manipulation.
This article explains how to construct regular expressions that balance matching expected strings, avoiding false matches, maintaining readability, and achieving performance, while covering when to use regex, practical JavaScript examples, accuracy techniques for phone numbers and floats, and key optimization strategies.
This cheat sheet compiles twenty practical regular‑expression patterns—including date, password, email, ID, IP, URL, and HTML validation examples—along with JavaScript snippets, giving developers a quick reference to boost input‑checking efficiency across front‑end and back‑end projects.
This article explains the two main aspects of using regular expressions in JavaScript—string methods such as search, replace, match, and split, and the RegExp object with its properties, constructor, and methods like exec, test, and compile, including practical tips and common pitfalls.
This comprehensive guide explains what regular expressions are, their practical uses in data validation and string manipulation, the syntax of literals and constructors, key String and RegExp methods, character classes, quantifiers, anchors, groups, assertions, flags, and the behavior of JavaScript's NFA engine, all illustrated with clear code examples.
The article introduces the upcoming C# 7.0 language enhancements—including output variables, pattern matching, extended switch statements, tuples, deconstruction, local functions, numeric literal improvements, ref returns, new async return types, and throw expressions—explaining their syntax, usage, and current preview limitations.
This article explains regular expression delimiters, common metacharacters, quantifiers, anchors, character classes, logical operators, negation, and escaping, providing clear examples of each pattern and how they match specific strings in target text.
This article explains why regular expressions are essential, introduces JavaScript regex syntax and creation methods, compares ES3 and ES5 behaviors, details literals, character classes, quantifiers, anchors, modifiers, and demonstrates practical patterns for URLs, HTML tags, and quoted strings.
This article introduces Erlang as a general‑purpose concurrent language, highlighting its fault‑tolerant runtime, simple 550‑line syntax, pattern‑matching capabilities, process creation with spawn, and practical examples using the ibrowse HTTP library to demonstrate message passing and distributed computing.
This article explains the most common regular‑expression metacharacters, their meanings, and shows how to combine them in real‑world grep commands to match patterns such as lines starting with 30, containing 70 or 1800, and validating email addresses.
This article provides a comprehensive, English-language reference of common regular expression metacharacters, explaining their meanings, usage rules, and examples for pattern matching in programming languages such as JavaScript.