web stats
Mirth Community - View Single Post - Replace '\E' from URL link using replace method
View Single Post
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

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

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