Answers for "how to replace non alphanumeric characters in java"

2

python string strip non alphanumeric

Regular expressions to the rescue:

import re
stripped_string = re.sub(r'\W+', '', your_string)
Posted by: Guest on February-05-2020
0

replace non alphanumeric javascript

text.replace(/[\W_]+/g," ");
Posted by: Guest on March-29-2020

Code answers related to "how to replace non alphanumeric characters in java"

Code answers related to "Javascript"

Browse Popular Code Answers by Language