You can use a look behind to make sure it is not at the beginning. (?<!^)aaa
More Related Contents:
- Regular expression to match a line that doesn’t contain a word
- Regular expression for a string containing one word but not another
- How to negate the whole regex?
- Regular expression that doesn’t contain certain string [duplicate]
- How to exclude a specific string constant? [duplicate]
- Regex – Does not contain certain Characters
- How can I match a pattern as long as it’s not at the beginning with regex?
- Negate characters in Regular Expression [closed]
- Regex to get the words after matching string [duplicate]
- Regex: Matching by exclusion, without look-ahead – is it possible?
- Unix grep regex containing ‘x’ but not containing ‘y’
- Regular Expression to exclude set of Keywords
- How do I turn any regex into an complement of itself without complex hand editing?
- string pattern matching using perl regex [closed]
- Why is this regex allowing a caret?
- Regex: ignore case sensitivity
- Decimal or numeric values in regular expression validation
- Carets in Regular Expressions
- How do you debug a regex? [closed]
- Negating a backreference in Regular Expressions
- To use or not to use regular expressions?
- Multiple regex matches in Google Sheets formula
- Regex to match any character including new lines
- How do I get regex support in Excel via a function, or custom function?
- How to search and replace with a counter-based expression in Vim?
- Combining $regex and $or operators in Mongo
- Why does VIM have its own regex syntax?
- Redirect all traffic to root of another domain
- ignoring changes matching a string in git diff
- Regex allow digits and a single dot