In a text how get the value after certain word , if the word repeated twice I need value after the second word

In a text how get the value after certain word , if the word repeated twice or thrice I need value after the last repeated word
eg:
Input:
“char1 = [1,2,4,5]
char1
12345”
output :
12345
eg 2:
Input
char1 is in the table char2 is modified char2 has some error
output:
has some error

Store your text in a string variable(say var1). Then use var1.substring(var1.lastIndexOf(“YourCertainWord”)+LengthOfYourCertainWordAsInteger)

Thanks Surya, Working fine

1 Like

You’re welcome

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