+ Start a Discussion
Cris9931Cris9931 

Trigger to search for particular words in a string

Hello,  I have the following text:   

User-added image 

I have the 'WOT Order' in this string. What I want to achieve is the following:  I created 2 text fields:    
 
1. The Task has been already completed
2. User not allowed to complete the task in future date
 
Now, I want to store in these fields the WOT Order corresponding to each error message.  
 
First Example: In the first row we have WOT Order :0010 following by both error messages; (1)Task has been already completed.  (2)If the user is authorized,then he can set completed date as future date.  
 
I want to populate in this case:  
 
1. The Task has been already completed: 0010
2. User not allowed to complete the task in future: 0010.  
 
Second Example: For the next record I have WOT Order :0020 but its only for this error message:  If the user is authorized,then he can set completed date as future date.  
 
I want to populate in this case:  
 
1. The Task has been already completed: 
2.  User not allowed to complete the task in future date: 0020   
 
And so on... How can I accomplish this? Do I need to use regex?