Regex, select closest match
(?s)BLA(?:(?!BLA).)*?LOOK
Try this. See demo.
Alternatively, use
BLA(?:(?!BLA|LOOK)[\s\S])*LOOK
To be safer.
(?s)BLA(?:(?!BLA).)*?LOOK
Try this. See demo.
Alternatively, use
BLA(?:(?!BLA|LOOK)[\s\S])*LOOK
To be safer.