About 157,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. String.Substring Method (System) | Microsoft Learn

    The starting character position is zero-based; in other words, the first character in the string is at index 0, not index 1. To extract a substring that begins at a specified character position and …

  4. 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.

  5. Java String substring () Method - GeeksforGeeks

    Apr 11, 2025 · In Java, the substring () methodof the String classreturns a substring from the given string. This method is most useful when you deal with text manipulation, parsing, or data …

  6. JavaScript String substring () Method: Extracting Substrings

    Feb 6, 2025 · A comprehensive guide to the JavaScript String substring () method, covering syntax, usage, and practical examples for extracting substrings.

  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 …

  8. JavaScript String substring () Method - GeeksforGeeks

    Jul 11, 2025 · The substring () method in JavaScript is used to extract characters between two indices from a string, without modifying the original string. This method returns a new string …

  9. JavaScript Substring Method | Refine

    Dec 31, 2024 · What is JavaScript substring()? JavaScript substring() is a String method that is typically used to extract and store part of a string. During the extraction, the original string …

  10. JavaScript String substr () Method - W3Schools

    The substr() method extracts a part of a string. The substr() method begins at a specified position, and returns a specified number of characters. The substr() method does not change the …