About 111,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 String substring () Method - GeeksforGeeks

    Jan 16, 2026 · One common use case for substring () is when you need to extract specific substrings from a known index range. For example, you might extract the first name or last name from a full …

  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 () method of the String class returns a substring from the given string. This method is most useful when you deal with text manipulation, parsing, or data extraction.

  6. Java String substring () Method - W3Schools

    Definition and Usage The substring() method returns a substring from the string. If the end argument is not specified then the substring will end at the end of the string.

  7. Java substring () 方法 - 菜鸟教程

    Java substring () 方法 Java String类 substring () 方法返回字符串的子字符串。 语法 public String substring (int beginIndex) 或 public String substring (int beginIndex, int endIndex) 参数 beginIndex - …

  8. JavaScript substring () Method: Complete Guide with Examples

    Apr 3, 2026 · JavaScript's substring() method extracts characters between two index positions in a string and returns the result as a new string. It is one of the most commonly used string methods in …

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

    Oct 14, 2025 · This JavaScript substring example will show you how to extract parts of a string efficiently. In this blog, we will discuss what the substring () method in JS is, its syntax, real-world …

  10. JavaScript String substring () Method - Online Tutorials Library

    The JavaScript String substring () method is used to retrieve a part of a string from the original string starting from the specified startIndex up to indexEnd (excluding this), and if the indexEnd is not …