javascript - Regular expression to change \ in string to /
大家讲道理
大家讲道理 2017-05-19 10:23:20
0
1
489

Change:
FilesemapServer_192.168.8.109 East Chang'an Street Sixth Floor.jpg
to:
/Files/emap/Server_192.168.8.109/East Chang'an Street Sixth Floor.jpg

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
阿神

I don’t see what language it is, I only see the tag is javascript, just use javascript syntax

a = '\Filesemap\Server_192.168.8.109\东长安街六层.jpg'
a.replace(/\/g, '/')
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template