@@automationinsights6722 hi I have one doubt. I have one string Eg "abc Def get 88888 abc Def get 9999" Now I want value 9999 how can I get this using substring
Please try this, strText - "abc Def get 88888 abc Def get 9999" strText.Substring(strText.LastIndexOf("get ")+4) it will get the last occurrence of text "get " and we add plus 4 to find the index of first position after that, and because we didn't give length it will return all the characters after the index.
Great lesson ! I learnt new things. Thank you so much.
Nice...Awesome explanation with 3 different methods. I like the Regex method. Expect separate videos on Regex methods.👍
Sure jack will do in future 🙂..
Excellent video on regex
Nice Explanation...Thank you
Nice explanation.great job
Thank you 🙂
@@automationinsights6722 hi I have one doubt. I have one string
Eg "abc Def get 88888 abc Def get 9999"
Now I want value 9999 how can I get this using substring
Please try this,
strText - "abc Def get 88888 abc Def get 9999"
strText.Substring(strText.LastIndexOf("get ")+4)
it will get the last occurrence of text "get " and we add plus 4 to find the index of first position after that, and because we didn't give length it will return all the characters after the index.
Superb..
Good explanation
Sema da🔥, do more videos
Sure will do thank u😀 ...
Please Create some more videos on regex
Sure will do in future...
in the substring method what if the text is changing and you don't know the exact length, how do you do it?
How to extract email in use string manipulation ?
Hi you can use regular expression to get the email in a string...
hi dear I am wondering how to get first 5 words on this string? which code?
Left(yourstringvariable,5) will work