Added conditions to BLRegex