web stats
Mirth Community - View Single Post - Replace '\E' from URL link using replace method
View Single Post
  #1  
Old 02-13-2019, 01:17 AM
shuhaibk54 shuhaibk54 is offline
OBX.1 Kenobi
 
Join Date: Jan 2018
Location: Abudhabi
Posts: 26
shuhaibk54 is on a distinguished road
Send a message via AIM to shuhaibk54 Send a message via Skype™ to shuhaibk54
Default Replace '\E' from URL link using replace method

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', '');
logger.debug(res);
---------------------------------------------------------------------
When I try run a script, it giving me an out put like :
--------------------Java script return like this --------------------
[2019-02-13 15:06:30,001] DEBUG (js-connector:?):

\E.1.2.154EcsE877_P9999_Adult{2}_02_05_2019_032 9p.pdf

---------------------------------------------------------------------
it does not get replaced . I am expecting final out like this
\\10.1.2.154\bcs\30877_P9999_Adult{2}_02_05_2019_0 329p.pdf



-----------------------------

Any quick advise on this
Reply With Quote