Want to extract a specific text from string

Change order number 1 has been processed for Work Request 05924509

Item Job GEO LOC Bid Area FRC Quantity Status


FD102 MR00000 ZX48D9 SWKC4 219M 1.00 APPROVED
LSFULP MR00000 ZX48D9 SWKC4 219M 891.93 APPROVED

Disapproval Reason:

Above is a string and i want to extract approved from string sometime disapproved also come in place of approve i want to extract either it was approved or disapproved and both would by in small and capital letter.
how to extract

HI @Puneet_Singh3

Can you share your expected output?

Regards
Gokul

@Puneet_Singh3 ,

If you want to Check if in the String "APPROVED" exists or "DISAPPROVED" exists.

You can simply use Contains() method of String.

Let’s say strInput is your Input string, then we can Check if the required word exists in the below way :

strInput.Contains("APPROVED")
1 Like

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