About 1,600,000 results
Open links in new tab
  1. c++ - How to use string.substr () function? - Stack Overflow

    Mar 19, 2010 · string substr ( size_t pos = 0, size_t n = npos ) const; Generate substring Returns a string object with its contents initialized to a substring of the current object. This substring is …

  2. What is the difference between substr and substring?

    Sep 19, 2010 · 17 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 …

  3. substring - How substr () of c++ really works? - Stack Overflow

    Oct 20, 2020 · string substr (size_t pos = 0, size_t len = npos) const; Generate substring Returns a newly constructed string object with its value initialized to a copy of a substring of this object. …

  4. SQL Essentials: SUBSTR Function Explained — NetSuite Community

    The SUBSTR function emerges as a fundamental tool in SQL for extracting substrings from strings based on specified criteria. Understanding the Syntax SUBSTR (string, start_position, …

  5. SUBSTR and INSTR SQL Oracle - Stack Overflow

    SELECT PHONE, SUBSTR(PHONE, 1, INSTR(PHONE, '-') -1) FROM DIRECTORY; So I know SUBSTR cuts values off, and INSTR shows where the occurrence is but the example I've put …

  6. substr() from the 1. to the last character C++ - Stack Overflow

    Jan 9, 2016 · 9 The signature for substr is string substr (size_t pos = 0, size_t len = npos) const; As the length of the new string is 1 less than the old string you should call it as follows: string …

  7. Why is String.prototype.substr () deprecated? - Stack Overflow

    Oct 4, 2018 · Moreover, substr is largely redundant with substring and slice, but the second argument has a different meaning. In pragmatic terms, I'd be surprised if you found a full …

  8. SELECT Statement with substr in WHERE Clause - Stack Overflow

    Mar 9, 2012 · SELECT Statement with substr in WHERE Clause Asked 13 years, 8 months ago Modified 12 years, 5 months ago Viewed 106k times

  9. How to use substring function in c? - Stack Overflow

    May 10, 2012 · If you know the character also in the string from where you want to get the substring then you can use strstr function. It locates the substring. But if u do not know the …

  10. How to Select a substring in Oracle SQL up to a specific character ...

    SELECT REGEXP_SUBSTR('STRING_EXAMPLE','[^_]+',1,1) from dual is the right answer, as posted by user1717270 If you use INSTR, it will give you the position for a string that assumes …