I just want to know whether ruby regex has a not match operator just like !~
in perl. I feel it's inconvenient to use (?!xxx)
or (?<!xxxx)
because you cannot use regex patterns in the xxx
part.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…