I tried several solutions from the internet an worked myself through some tutorials but I am not able to make it work. I try to match a word in a string with random letters, numbers or dots before and/or after.
eg.
Meeting.Room
MeetingRoom21
Room
Meeting2Room
Meeting.room
12MeetingRoom110.MeetingRoom
I try to match the word "Room" but it should not be case sensitive.
The last pattern I tried was this: \b()(\wRoom\w)\b \ig
But I use regex not that much and I struggle to solve something after three months.
I hope someone can help me.
public bool Regex_check_for_match(string input, string pattern)
{
bool ismatch = Regex.IsMatch(input, pattern);
return ismatch;
}