I want to get the .doc file name and save it in the next property (pdf.name
). Using regexp I want to remove all the blank spaces in the .doc file name and transform it from this:
NAME FILE.doc
To this:
NAMEFILE.pdf
This is my code:
<propertyregex override="yes" property="pdf.name" input="@{remoteDocToPdf}"
regexp="\.*([[^/]+$^\.]*)\.doc" select="\1.pdf" casesensitive="true" />