I'm trying to have 2 regex, one catching string containing 'critrical' and ending with '(s)css' and second one for string which don't contain 'critical' (with the same extentions rule).
I already have the first one and it is /.*?critical.*.s?css$/
But I can't manage to make the second one. I thought it would be as easy as /.*?(?<!.critical).*.s?css$/
. But, seems it's not that easy as it doesn't work...
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…