I have a string "\"David\"". I want to read David using C# Regex. What I have done is here:
- string strNamePattern = @"^[a-zA-Z][a-zA-Z0-9\ '-]*$";
- Regex re = new Regex(strNamePattern);
- Match match = re.Match(strLastName);
but match.Success does not return true, so I could not get match.Value. I want that if Lastname contains any single or double quotes at starting and ending position, then it must read the substring within that double or single quote
Jignesh KumarPosted Apr 28, 2020, 10:36 PM
Arvind KushwahaPosted Apr 29, 2020, 12:37 AM
Azhar RahiPosted Apr 28, 2020, 1:14 PM
Arvind KushwahaPosted Apr 28, 2020, 7:49 AM
Jignesh KumarPosted Apr 28, 2020, 7:39 AM