Can anyone please assist?
I normally remove the task comments field and add a comments field from my SharePoint list by customizing the task form - that way you get the raw comments and none of that added stuff.
Hi Cassy
Thanks for the reply. Yes I've used that option before but in this case I would like to use the Approver task comments because they display the metadata (as in approver name and timestamp etc) on the form field.
Using the other option is neat but doesn't show the metadata on the form (although you can find it from the workflow history).
OK then in that case I will tag Marian Hatala the master of all things regular expression
Hi Marian
Thanks for the reply. Actually I read thoroughly through all of those posts before I posting mine, as I am still stuck.
The closest one I could see was the post by Stephen Parker, however it mentions creating loops.
I just thought there would be some simple reg ex to achieve what I'm after i.e.
"Lastname, Firstname (Outcome) Date Timestamp:
Comments"
Thanks
Actually I read thoroughly through all of those posts before I posting mine
hadn't you still get convinced regexes are not a proper way to go for this purpose?
however it mentions creating loops.
yes, because he splits outcome into two parts and stores it into a collection. so he has to iterate over collection to process each part separately
I just thought there would be some simple reg ex to achieve what I'm after
if you have read through the forum as you mentioned, you might have noticed there is no such simple one.
I tried the following pattern but when I run it, the result is the same as the input text
if you test with Ron Now you have to supply some real Input Text sample. in Run Now reference variable can not be evaluated and is taken literally.
the other reason you do get returned whole input is that with your regular expression you require " (Not Required)" string being present, which is apparently not the case.
considering sample of possible input you provided and expected output, eg. following regular expression might work
s-sd{1,2}/d{1,2}/d{4}sd{1,2}:d{1,2}s(A|P)Ms(.*)s