Top "Substring" questions

Part of a string, or the function/method that returns part of a string

Is it possible to count the number of distinct substrings in a string in O(n)?

Given a string s of length n, is it possible to count the number of distinct substrings in s in …

string algorithm substring time-complexity suffix-tree
Returning the string between the 5th and 6th Spaces in a String

I have a column of strings that look like this: Target Host: dcmxxxxxxc032.erc.nam.fm.com Target Name: dxxxxxxgsc047.…

substring tableau-api
XSL - Removing the filename from the path string

I've got a SharePoint problem which I need some help with. I'm creating some custom ItemStyles to format the output …

xslt sharepoint-2007 substring
tsql - extract string using SUBSTRING

I have a column where I need to extract the remainder of a string starting from "_". Example below: TF_Bskt …

sql-server-2008 tsql substring charindex
string.IndexOf search for whole word match

I am seeking a way to search a string for an exact match or whole word match. RegEx.Match and …

c# regex string substring indexof
Check if string is substring in Prolog

Is there a way to check if a string is a substring of another string in Prolog? I tried converting …

prolog substring dcg subsequence
Java: How to RegEx or Substring Utils this String?

"Current Peak : 830 300" How can I get hold of the two numbers, but without the spaces. (There are 5 or more spaces …

java regex string substring string-utils
Java JTextArea multiline help

one problem I'm having is i have 2 JTextAreas and i need to add a list of items to them. The …

java swing newline substring jtextarea
Bash: substring from first occurrence of a character to the second occurrence

In bash, how do I get a substring of everything from the first occurrence of a character to the second …

string bash substring character find-occurrences
Substrings in the middle of a String in C

I need to extract substrings that are between Strings I know. I have something like char string = "abcdefg"; I know …

c string substring extract strncpy