About 10,400,000 results
Open links in new tab
  1. What is the difference between substr and substring?

    Sep 19, 2010 · When using substring the second parameter is the first index not to include: var s = "string"; s.substring(1, 3); // would return 'tr' var s = "another example"; s.substring(3, 7); // …

  2. string - javascript substring - Stack Overflow

    Apr 4, 2013 · alert('helloworld'.substring(5, 2)); The code above is wrong because the first value is the start point to the end point.E.g move from char 5 which is o and go to char 2 which is the l …

  3. Check substring exists in a string in C - Stack Overflow

    Jun 2, 2017 · Assign a pointer to the main string and the substring, increment substring pointer when matching, stop looping when substring pointer is equal to substring length. read_line() - …

  4. How do I get a substring of a string in Python? - Stack Overflow

    Aug 31, 2016 · @gimel: Actually, [:] on an immutable type doesn't make a copy at all. While mysequence[:] is mostly harmless when mysequence is an immutable type like str, tuple, …

  5. c++ - How to use string.substr () function? - Stack Overflow

    Jan 16, 2017 · Generate substring. Returns a string object with its contents initialized to a substring of the current object. This substring is the character sequence that starts at …

  6. Check whether a cell contains a substring - Stack Overflow

    Sep 4, 2013 · The code below uses the VBA Instr function, which looks for a substring in a string. It returns 0 when the string is not found. Public Function CONTAINS(TextString As String, …

  7. string - Extract substring in Bash - Stack Overflow

    Jan 9, 2009 · Clickbait title. The meaning of substring function is well established and means getting a part by numerical positions. All the other things, (indexOf, regex) are about search. A …

  8. Filter pandas DataFrame by substring criteria - Stack Overflow

    Basic Substring Search # setup df1 = pd.DataFrame({'col': ['foo', 'foobar', 'bar', 'baz']}) df1 col 0 foo 1 foobar 2 bar 3 baz str.contains can be used to perform either substring searches or …

  9. string - Extract a substring using PowerShell - Stack Overflow

    The Substring method provides us a way to extract a particular string from the original string based on a starting position and length. If only one argument is provided, it is taken to be the …

  10. vba - Check if a string contains another string - Stack Overflow

    Feb 19, 2014 · 'a) check if base string contains indicated search string, e.g. a comma (default value) Debug.Print "Is Found: " & CBool(StrIncludes(s)) ' ~~> Is Found: True 'b) get number of …