Match occurrences before caret