I have set up a workflow where scanned and OCRed files are searched for dates and other patterns, which are then used to rename the file. I want to create a rule that renames certain letters as follows: [DATE] from [SENDER] RE: [WHATEVER IS IN THE RE: LINE]. Where I get stuck is the "RE" line, which has a variable number of words in it. For example, one letter may say:
RE: Inventory Audit
while another may say:
RE: Team Meeting Monday Morning
How can I create a token that captures whatever is in the RE: line, regardless of how long or short it is, and nothing more?
What I have now is:
If all of the following conditions are met
Contents contain Bob Smith
Contents contain match (Date Match)
Contents contain (Re Line)
(Re Line) is a custom token that looks like this:
RE: (abc)(...)
But that only gets me the first word of the RE line. If I add more (...) elements, it will go on to the next line if it gets to the end of the RE line and there are more tokens. Since I can't predict how many words there will be, I need a way to tell it to capture everything after the RE:, until it gets to the end of the line. Is there a way to do that?