Use a negative look-ahead that asserts the absence of any of the three words somewhere in the input:
^(?!.*(trunk|tags|branches)).*$
I also slightly rearranged your regex to correct minor errors.
More Related Contents:
- Matching numbers with regular expressions — only digits and commas
- Can I use a Regex in an XPath expression?
- .NET – How can you split a “caps” delimited string into an array?
- How does RegexOptions.Compiled work?
- RegEx: Smallest possible match or nongreedy match
- Regex.IsMatch vs string.Contains
- Balancing groups in variable-length lookbehind [duplicate]
- Regular expression, split string by capital letter but ignore TLA
- Make regular expression case insensitive in ASP.NET RegularExpressionValidator
- Is there a regex flavor that allows me to count the number of repetitions matched by the * and + operators?
- How to Regex search/replace only first occurrence in a string in .NET?
- Best HashTag Regex
- Regular expression for parsing links from a webpage?
- Regex replacement capture followed by digit
- Regex to match anything but two words
- Regular expression to find all table names in a query
- Regex for all PRINTABLE characters
- How to add folder to assembly search path at runtime in .NET?
- What does “Object reference not set to an instance of an object” mean? [duplicate]
- What is the maximum length of an array in .NET on 64-bit Windows
- There is no ListBox.SelectionMode=”None”, is there another way to disable selection in a listbox?
- Outlook autocleaning my line breaks and screwing up my email format
- Decoding and verifying JWT token using System.IdentityModel.Tokens.Jwt
- Dependency Injection and IDisposable
- How to overcome StackOverflowException bypassing unhandled exception handling in .NET
- How to send email using default email client?
- Getting the PublicKeyToken of .Net assemblies [duplicate]
- Reconfigure NLog LoggingConfiguration filters programmatically
- What to do with “The version of SOS does not match the version of CLR you are debugging” in WinDbg?
- How do I attach Visual Studio to a process that is not started yet?