One of our clients have asked us to replace the first line break (&#xa
) with a comma.
So far the regex that we have for our location address is this:
Location = vacancy.Location.IsNullOrEmpty() ?
string.Empty :
Regex.Replace(vacancy.Location, "&#?[a-z0-9]+;", " ");
Can someone tell me how i can add another rule to the regex pattern which would replace only the first instance of &#xa
with a comma?
Thank you!