About 238,000 results
Open links in new tab
  1. String.prototype.substr () - JavaScript | MDN

    Aug 19, 2025 · The substr() method of String values returns a portion of this string, starting at the specified index and extending for a given number of characters afterwards.

  2. MySQL SUBSTR () Function - W3Schools

    Extract a substring from a string (start at position 5, extract 3 characters): The SUBSTR () function extracts a substring from a string (starting at any position). Note: The position of the first …

  3. substr () in C++ - GeeksforGeeks

    Sep 19, 2025 · In C++, the string substr () function is used to extract a substring from the given string. It generates a new string with its value initialized to a copy of a sub-string of the given …

  4. What is the difference between substr and substring?

    Sep 19, 2010 · The big difference is, substr() is a deprecated method that can still be used, but should be used with caution because they are expected to be removed entirely sometime in …

  5. JavaScript String substr () Method: Extracting Substring

    Feb 6, 2025 · This guide provides a comprehensive overview of the substr() method, including its syntax, parameters, practical examples, and essential tips for effective string manipulation.

  6. Extracting Substrings in JavaScript: An In-Depth Guide to the substr ...

    Dec 27, 2023 · Although modern methods like slice() and substring() are recommended in most cases, substr() remains a handy tool for certain substring manipulations in JavaScript. In this …

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

    Jul 10, 2025 · Negative lengths in substr() are treated as zero, while substring() will swap the two indexes if end is less than start. Furthermore, substr() is considered a legacy feature in …

  8. JavaScript String substring () Method - W3Schools

    let text = "Hello world!"; More examples below. The substring() method extracts characters, between two indices (positions), from a string, and returns the substring. The substring() …

  9. JavaScript: String substr () method - TechOnTheNet

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

  10. JavaScript String substr () Method - GeeksforGeeks

    Mar 22, 2025 · This code demonstrates the usage of the substr () method in JavaScript. It extracts a substring from the original string starting from the specified index (5 in this case) till the end.