regex - How to allow a-z 0-9 and '+' in a string and remove all others? -


how allow a-z 0-9, 'space' , 'plus' in string , remove other characters?

my string is:

riot☩ danny/da'ze-u+s ☩ saturday ☩ may 18th ☩ simons

can body me?

i'm not sure whether understand question correctly...

do want remove characters not allowed?

then replace "[^a-z 0-9+]" ""


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -