I tried to replace
elements in a string using .NET regex - with no luck :)
Assume the following string:
AA A C D A Some Text here
The rules
- Do not replace at beginning of line
- Do only replace single occurrences
- Do not replace if a space is before or after it (optional)
The desired result from above is (# as replacement character):
AA#A C#D A#Some Text here