You don’t say what flavor of regex you’re using, but this should work in general:
Tom(?!\s+Thumb)
More Related Contents:
- RegEx for Multi-Words Without Numbers and Any Special Characters
- What is this pattern “\\s*\\^++\\s*” used for? [duplicate]
- Regular expression to match balanced parentheses
- How do I deal with special characters like \^$.?*|+()[{ in my regex?
- Regular expression that matches valid IPv6 addresses
- How to capture multiple repeated groups?
- Regular expression to enforce complex passwords, matching 3 out of 4 rules
- Regular expression to allow spaces between words
- Check if a string matches a regex in Bash script
- Regular expression for exact match of a string
- Regular expression for matching latitude/longitude coordinates?
- Regex to disallow more than 1 dash consecutively
- Delete all content but keeping matched
- regex for zip-code
- Regex to match 2 digits, optional decimal, two digits
- Extracting top-level and second-level domain from a URL using regex
- HTML5 input pattern search for quote
- When should I not use regular expressions?
- regex to remove ordinals
- Replace a word with multiple lines using sed?
- Regular Expression Vs. String Parsing
- Can extended regex implementations parse HTML?
- How to get Vim to highlight non-ascii characters?
- Regexp for subdomain
- Regex Letters, Numbers, Dashes, and Underscores
- How to replace only part of found text?
- Can I use an OR in regex without capturing what’s enclosed?
- How to make “grep” read patterns from a file?
- How to measure similarity between strings?
- “UnicodeEncodeError: ‘ascii’ codec can’t encode character”