Answers for "regex remove non alphanumeric"

6

python regex replace all non alphanumeric characters

import re

s = re.sub('[^0-9a-zA-Z]+', '*', s)
Posted by: Guest on March-08-2021
0

c# filter non alphanumeric characters

Regex rgx = new Regex("[^a-zA-Z0-9 -]");
str = rgx.Replace(str, "");
Posted by: Guest on March-25-2020
1

regex allow alphanumeric and special characters

/^[ A-Za-z0-9_@./#&+-]*$/
Posted by: Guest on July-13-2020
0

remove all non alphabetic characters from string c#

var cleanString = new string(dirtyString.Where(Char.IsLetter).ToArray());
Posted by: Guest on October-30-2020

Code answers related to "regex remove non alphanumeric"

Python Answers by Framework

Browse Popular Code Answers by Language