About 113,000 results
Open links in new tab
  1. JavaScript String substring () Method - W3Schools

    The substring() method extracts characters, between two indices (positions), from a string, and returns the substring. The substring() method extracts characters from start to end (exclusive).

  2. String.prototype.substring () - JavaScript | MDN

    Jul 10, 2025 · The substring() method of String values returns the part of this string from the start index up to and excluding the end index, or to the end of the string if no end index is supplied.

  3. JavaScript Substring (): Extract a Substring from a String

    In this tutorial, you'll learn how to use the JavaScript substring () method to extract a substring from a string.

  4. JavaScript String substring () Method - GeeksforGeeks

    Jan 16, 2026 · substring () can be used in string validation checks, such as checking whether a specific portion of a string matches a pattern. If you need to remove a prefix or suffix from a string, you can …

  5. What is the difference between substr and substring?

    Sep 19, 2010 · There are some additional subtleties between substr() and substring() such as the handling of equal arguments and negative arguments. Also note substring() and slice() are similar …

  6. JavaScript: String substring () method - TechOnTheNet

    This JavaScript tutorial explains how to use the string method called substring () with syntax and examples. In JavaScript, substring () is a string method that is used to extract a substring from a …

  7. JavaScript substring (): How to Extract Substrings Easily in JS

    Oct 14, 2025 · Master JavaScript substring () method to extract string parts efficiently. Learn syntax, parameters, differences from slice (), with code examples and best practices for beginners.

  8. Javascript String substring () - Programiz

    In this article, you will learn about the substring () method of String with the help of examples.

  9. Mastering JavaScript Substring Methods: When and How to Use slice ...

    Aug 30, 2024 · Extracting substrings is an extremely common task in JavaScript. Whether you‘re parsing input, manipulating API responses, formatting strings, or searching text – getting part of a …

  10. Substring vs Substr vs Slice in JavaScript - Mastering JS

    Jun 20, 2019 · There are 3 ways to get a substring of a string in JavaScript. In this tutorial, you will learn the difference between `String#substring ()`, `String#substr ()`, and `String#slice ()`