Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

I am replacing Special Character using but i don't want to replace dot . using java script or Jquery

$
0
0

Hi in file Upload the files those names consists Some Character such as  & #  etc files is not upalding so i try this below

       

  NewfileName=NewfileName.replace(/[^a-z0-9\s]/gi, '').replace(/[_\s]/g, ' ');     

Issue -But issue is its also replace Dot . So file Extension is also lost :(  

So i want Dot will not Replace and all other will replace


Shiv Sharma


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>