I use regexand C#to find occurrences of a specific word using
Regex regex = new Regex(@"\b" + word + @"\b");
How can I change my regular expression only to detect a word if it is preceded by spaces and then a space or dot with a dot?
Examples:
this.Button.Value - must match this.value - must match
document.thisButton.Value - should not match
source
share