About 46,400 results
Open links in new tab
  1. 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 string.

  2. MySQL SUBSTR () Function - W3Schools

    Definition and Usage The SUBSTR () function extracts a substring from a string (starting at any position). Note: The position of the first character in the string is 1.

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

  4. std::basic_string<CharT,Traits,Allocator>::substr - cppreference.com

    Return value String containing the substring [pos, pos + count) or [pos, size()). Exceptions std::out_of_range if pos > size(). If an exception is thrown for any reason, these functions have no …

  5. JavaScript String substr () Method - W3Schools

    Description 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 …

  6. PHP: substr - Manual

    substr_replace () - Replace text within a portion of a string preg_match () - Perform a regular expression match trim () - Strip whitespace (or other characters) from the beginning and end of a string …

  7. SUBSTR - Oracle Help Center

    The SUBSTR functions return a portion of char, beginning at character position, substring_length characters long. SUBSTR calculates lengths using characters as defined by the input character set.

  8. String.prototype.substr () - JavaScript | MDN

    Jul 19, 2017 · The substr() method returns the characters in a string beginning at the specified location through the specified number of characters. Syntax str.substr(start[, length]) Parameters ... Location …

  9. string - C++ Users

    Returns a newly constructed string object with its value initialized to a copy of a substring of this object. The substring is the portion of the object that starts at character position pos and spans len …

  10. JavaScript String substr () Method - GeeksforGeeks

    Mar 22, 2025 · The substr() method in JavaScript extracts a portion of a string, starting from a specified index position and extending for a given number of characters. This method was traditionally used to …