cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Not applicable

Regular expression to extract only comments from "Approval Comments" is not working

Hi ,

After Approval action Regular expression is added to extarct the comments text form the whole comments log. every thing is running fine when i execute the script in the Run Now window .

but after publishing the worklfow , i still see the original comments resulted from regular expression  ... not sure what's wrong... any help pls....

 

Input text :

Kumar, Sandeep (Rejected) 8/19/2015 5:10 PM - 8/19/2015 5:10 PM

(Kumar, Sandeep) Document rejected for publishing

Regular expression : ([\w\s,]+) \([\w\s]+\) (?:[\d:.\/\s\w\-]+) \([\w\s,]+\) (?<Comment>.*)

Replacement Text: Comment : "${Comment}"

Expected Out Put text: Comments: Document rejected

 

Log.jpg

Regularexpression2.jpg

Regularexpression.jpg

Labels: (2)
0 Kudos
Reply
1 Reply
Highlighted
Nintex Newbie

Re: Regular expression to extract only comments from "Approval Comments" is not working

The problem is some spaces in your regular expression.  Just get rid of the white space and use \s instead.

([\w\s,]+)\s\([\w\s]+\)\s(?:[\d:.\/\s\w\-]+)\s\([\w\s,]+\)\s(?<Comment>.*)

Here is another thread on the same topic.

Remove approver comments

Reply