Added non-capturing lookahead assertion to text controller