Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: XS JS function

$
0
0

If you have XSJS as part of your solution, you could do this with a simple regex replace.

 

The below example shows how to do this:

var allowed ="A-Za-z";     // Only letters allowed

var rx = new RegExp("[^" + allowed + "]","gi");

var str ='HelloWorld1234!@#$%^';
var newstr = str.replace(rx,' ');
console.log(newstr); // returns "HelloWorld "

 

(Reference for more details)


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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