cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a rule to extract attributes from file name - regex

shikarishambu
Champ in-the-making
Champ in-the-making
I wanted to see if there is a way to extract attributes related a file from the file name …eg. 123_VacationRequest_02102010.pdf  refers to a document of category VacationRequest, for employee ID 123 for vacation starting 02102010.

So, I would like the rule to
a) tranform the pdf to a specific on content type
b) set the category to VacationRequest
c) set the content attribute employeeid value to 123
d) set the content attribute startdate value to 02102010

TIA
1 REPLY 1

kbonnet
Champ in-the-making
Champ in-the-making
You can write your own javascript and refer to it from a content rule. With javascript you're able to do the things you want.

Koen