modifying variable values using regular expression

Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.
2 posts Page 1 of 1


Posts: 3
Joined: Fri Dec 10, 2010 10:59 am

Post by vanrobstone » Wed Apr 20, 2011 4:23 am

Is it possible to use a set variable task to modify the value of a variable to obtain a new value with a regular expression?

For example, I might have a variable called file.path and from that generate a new variable called

file.path = c:\test\rob\outer\filename.txt

I want to perform an operation on that variable value to obtain just = filename.txt

a regex operating on file.path [^\\]*$ would equate to that value but I have had no success in making this work.




Support Specialist
Posts: 65
Joined: Thu Mar 05, 2009 3:49 pm

Post by Support_Duane » Tue Feb 14, 2012 8:54 am
Before version 4.0, it was not possible to use a regular expression in a Set Variable task. At version 4.0 and beyond, the Replace(text, regex, replacement) function may be used.
2 posts Page 1 of 1