Top "Substring" questions

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

Code for extracting from the right side with cut command?

There is a sample of using the cut command to extract parts of a string starting from the left. An …

bash substring cut
How can I select a string from the beginning until a specified character?

How can I select a string from the beginning until a specified character? For example, in the following a news …

ios objective-c nsstring substring nsrange
Python - Get string after and before a Character

I've this strings: "I have been working - 8h by day" "Like - 9H by Month" I'm trying to get …

python substring charindex
How to get string between two characters

I need to get the string between the - and the ·, which is the GigabitEthernet1/0/1 CW-3D13-SW1 - GigabitEthernet1/0/1 · …

sql sql-server substring charindex
How to get Substring in sql query

I am trying to get substring from 0-7 position in an int element in table name so when I insert …

sql substring dbeaver
getting a sub string of a std::wstring

How can I get a substring of a std::wstring which includes some non-ASCII characters? The following code does not …

c++ substring non-ascii-characters wstring
Ellipsis with C# (ending on a full word)

I'm trying to implement ellipsis in Umbraco, the requirement being 15 characters of intro text but always ending on a full …

c# string substring ellipsis
Index and length must refer to a location within the string.?

My input strings are inputData = "99998UNKNOWN" inputData = "01000AMEBACIDE/TRICHOM/ANTIBAC 1" inputData = "34343AMEBACIDE/TRICHOM/ANTIBACSADWA1" ID = inputData.Substring(0,5); Name = inputData.Substring(5,30); …

substring c#-2.0 longest-substring
Most efficient way to remove leading zeros from Swift 3 string

I have a string such as "00123456" that I would like to have in an string "123456", with the leading zeros removed. …

swift3 substring leading-zero
What is the equivalent of XML PATH and Stuff in Linq lambda expression (GROUP_CONCAT/STRING_AGG)?

I am having a table like this : EmployeeId EmployeeName ItemName 4 Ganesh Key Board 4 Ganesh Processor 1 Jignesh Key Board 1 Jignesh Mouse 1 …

sql linq lambda substring for-xml-path