Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
Hi team,
I would like to rename a file .extension to _date.extension. I am able to do .filename.extension. I am using the pub.string:replace service. Please help with the regex to do it or any other method to do it. Waiting for answer from dev gurus…
Assuming the File name is filename.extension and you want to achieve filename_date.extension
SearchString: . replaceString: $1_%date%.$2 useRegex: true
$1 will be the filename $2 is the extension %date% is the value for the variable date.
HTH Radhika