regex issue c# numbers are underscores now
My Regex is removing all numeric (0-9) in my string.
EDIT: I understand that my “_” regex pattern changes the characters into underscores. But not why numbers!
Can anyone help me out? I only need to remove like all special characters.
See regex here:
The problem is your pattern uses a dash in the middle, which acts as a range of the ascii characters from
As you can see, numbers start at 49, and falls between the range of 41-61, so they’re matched and replaced.
You need to place the