Tags » Substring

[C Language] How to extract substring between two words

   srcs: source string
   Dest: destination of string
   froms: firt word to match
   Tos: second word to match
   return: 1 successufull otherwise error

int extractContent(char *srcs, char* Dest ,char* froms,char* Tos)
	int iret;
	char *resultS;
	char *resultE;
	int len;
	int lentoken;
	if(resultS!=NULL)//first string found
		if(resultE!=NULL)//second string found


	return iret;

… 113 more words
C Language

Transact-SQL to Powershell: Substring

In my ongoing attempt to learn Powershell to help automate my workloads, I’ve come across the need to use the Transact-SQL SUBSTRING() function but, in using it, I got the following error: 404 more words



#Split Column
for(i in 1:nrow(data)){
if(!is.na(as.numeric(substring(data$Description[i],first = 0, last = 1)))){

desc = data$Description[i]
pattern = “(PKT|KG|BOT|CTN|NOS)”
pattern2 = ” ”

data$Quantity[i]=substring(desc, first = 0, last = regexpr(pattern, desc)-1) 24 more words

[C Language] How to Left, Mid and Right string

In this post I show you how to implement Left,Mid and Right Functions with unique function to extrapolate part of source string.

These are the defines to use with function… 193 more words

C Language

Extract string before a special character

Here is an easy way to get (extract) all of the characters before a special character in a string.  In our example we have a listing of email addresses and we want to get the name before the @domain. 241 more words

Hints And Tips

Replace Substring In String Using Nintex Workflows In SharePoint 2013 And Office 365

Welcome to an article on how to replace substring in string in SharePoint 2013 and Office 365 using Nintex Workflows.This article will display the action “Replace Substring in String” so that all my developer friends don’t have to spend much time and effort while using this function in their projects. 357 more words