web stats
Mirth Community - View Single Post - Replace '\E' from URL link using replace method
View Single Post
  #2  
Old 02-13-2019, 02:33 AM
odo odo is offline
OBX.3 Kenobi
 
Join Date: Feb 2017
Location: Luxembourg
Posts: 139
odo is on a distinguished road
Default

You have to quote the backslash:
Code:
var str='\E\\E\10.1.2.154\E\bcs\E\30877_P9999_Adult{2}  _02_05_2019_0329p.pdf';
var res=str.replace(/\\E/g, '');
logger.debug(res);

Last edited by odo; 02-14-2019 at 07:34 AM. Reason: Oops, has to be javascript notation, of course...
Reply With Quote