𝐀𝐝𝐯𝐚𝐧𝐜𝐞 𝐒𝐭𝐫𝐢𝐧𝐠 𝐌𝐚𝐧𝐢𝐩𝐮𝐥𝐚𝐭𝐢𝐨𝐧
𝐀𝐝𝐯𝐚𝐧𝐜𝐞 𝐖𝐚𝐲 𝐭𝐨 𝐬𝐩𝐥𝐢𝐭𝐭𝐢𝐧𝐠 𝐚 𝐬𝐭𝐚𝐭𝐞𝐦𝐞𝐧𝐭 𝐰𝐢𝐭𝐡 𝐭𝐡𝐞 𝐡𝐞𝐥𝐩 𝐨𝐟 𝐬𝐩𝐥𝐢𝐭 𝐟𝐮𝐧𝐜𝐭𝐢𝐨𝐧
If we need to print specific word and its way to complicated than we will have to go with a complex statement in split function.
𝐟𝐨𝐫 𝐞𝐱𝐚𝐦𝐩𝐥𝐞 - "Hello world, I am a bot"
we need to print hello from the string, we need to go with the complex way of split function.
𝐒𝐩𝐥𝐢𝐭(𝐒𝐩𝐥𝐢𝐭(𝐌𝐞𝐬𝐬𝐚𝐠𝐞𝐓𝐞𝐱𝐭,",")(𝟎).𝐓𝐨𝐒𝐭𝐫𝐢𝐧𝐠," "𝐜)(𝟎).𝐓𝐨𝐒𝐭𝐫𝐢𝐧𝐠
1. We will split the whole statement with "," with the help of split function, we will be using below expression
Split(MessageText,",")(0).ToString
2. Further more to get "Hello" word, we need to split the above statement with space or a specific letter i.e. W.
Ещё видео!