I have the following string , i tried many many regex to remove comma between a tag text, but not found any regex for removing comma between a tag text. I want that , whenever text inside a tag has comma ,then will be replace by empty string.
<a href="#" class="main">Getty Center, Restaurant at the</a>
i have tried this regex but it is not working, here input is string that contains html.
input = Regex.Replace(input, @"<a(\s+[^>]*)?>[^\w\s]</a(\s+[^>]*)?>", "");
Please help me out. Thank You