Tags » Substring

Substring

#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

substr() vs substring() in JavaScript

substring() and substr() are among the most popular methods in JavaScript.

But, for a new developer, it creates confusion which one to use.

thought of clearing the minor difference that exists between these two APIs. 55 more words

JavaScript

substr() vs substring() in JavaScript

substring() and substr() are among the most popular methods in JavaScript.

But, for a new developer, it creates confusion which one to use.

thought of clearing the minor difference that exists between these two APIs. 55 more words

JavaScript

Capitalize a string

When you look at your data, do you see a mish mash of formats?  Do some people use camel case, some all lowercase, some upper?  Here is a quick script that you can use to capitalize the first letter in your single word strings. 504 more words

Hints And Tips