Skip to Content
-3
Aug 09, 2018 at 02:51 AM

How to replace the nth position value in a word ?

724 Views

Hi All,

How to replace the nth position field.

I can get the position of the field by using Find.I want to replace that position field with a variable.

For Example:- "ababap,ihaidhaidha,yusgdusd,hsjdhus,uhadjahd,uahsuah,iwueiwue,jueuwhgd".

I want to replace the 6th position value with aaaaa

The result should be like:-

ababap,ihaidhaidha,yusgdusd,hsjdhus,uhadjahd,aaaaa,iwueiwue,jueuwhgd

Thank you in advance!

Regards,

Sri Harika