I need to check whether my string got only
alphabets of the form
- Text
or of the form
– ‘Text’
or of the form
– “Text”
How to frame a regex for that? Currently what im using is provided below and that seems not working. Please help me modify this. Thanks in advance.
Regex isString = new Regex("[^a-zA-Z]|[^']|[^\"]");
1 Answer