vb.net - Inserting a String inside a String -


i want insert word inside existing word? both strings.

for example:

given string word:

hello sample sentence 

i want insert word i a output be:

hello sample sentence 

i inserting here basing on word sample. insertion starts before word sample. possible?

based on description of logic (which isn't go on), use:

dim input string = "hello sample sentence" dim isample integer = input.indexof("sample") dim output string = input.insert(isample, "i ") 

this uses bcl function string.insert, inserts string string @ particular position.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -