Hi Henrik
I've had a read up on regex, and been able to implement this, but it only works for one or two iterations. What i've done is:
1. Read a file, using regex the date in the file:
{REGEX(Match|{FILE(Content|D:\Users\swtest01u.uk\Desktop\1\test1.txt)}|^(0[1-9]|[12][0-9]|3[01])(0[1-9]|1[012])(19|20)\d\d$)}
2. Replace using the dateadd function (referencing part 1's task).
{DATEADD(Days|{TASK(dc720fe1-6cbf-4523-8519-8c21ca93120d,StdOut)}||ddMMyyyy|1|ddMMyyyy)}
All the file contains is 19042011, which when run once, correctly changes to 20042011. Running it again comes up with the following error:
{DATEADD(Days|"[Error in SetVariables, string: {DATEADD(Days|"[Error in SetVariables, string: {DATEADD(Days|"[Error in SetVariables, string: {DATEADD(Days|"[Error in SetVariables, string: {DATEADD(Days||ddMMyyyy|1|ddMMyyyy)}, err: String was not recognized as a valid DateTime.]"
Any ideas where this could be going wrong?
James