/INC\d{7}(?:(?=\D)|$)/ # Corrected: See post by AnomalousMonk, below.