Cameron ( , ). , .
( - ), . , . , ( ), , , .
foundMatch = Regex.IsMatch(subjectString, @"
# Match 'word' meeting multiple logical constraints.
^ # Anchor to start of string.
(?=[^!@#]*$) # It cannot have any of: ! @ #, AND
(?![ =]) # It cannot begin with a space or =, AND
(?!.*\S$) # It cannot end with a space, AND
.{1,} # length >= 1 (ok to match special 'word')
\z # Anchor to end of string.
",
RegexOptions.IgnorePatternWhitespace);
"regex-logic" .