2
Answers

help with Contains method

Ask a question
rocket

rocket

16y
3k
1

I'm trying to detect if a string contains any characters outside of a range of values (ASCII), from ,(comma) to |(pipe). I tried this and it didnt work

string.Contains("[^,-|]");

any ideas?


Answers (2)