How do I extract word from string

Hi everyone,
I want to extract word from a string, for e.g, the string is “Approved:(Mn45)”, I want to extract only the word Approved from it, sometimes the words after Approved changes so i only need to work on the word “Approved”. Any other method instead of using Regex?
Thank you

Hi @Daniyal_Tahir

Try inputStr.Substring(0,8)

To add,

If you need the word before the : then you can use Split, this will give you any value before the :. No matter the length of that word
strYourString.Split(“:”)((0).toString

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.