replace("\", "/) the path

Bihua Zhou December 14, 2015

Hi,

I want to change the path C:\download\datei\books\ with User Macro to C:/download/datei/books/ as following:

#set($a = "C:\download\datei\books\")

#set($b = $a.replace("\", "/")) 

but i take the follwing Erorr.

"Error occurred rendering template Content"

can you help me?

thanks

Bihua

 

 

 

 

1 answer

0 votes
Robert Krause
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 14, 2015

Have you tried escaping the backslashes?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events