否定的後読み(?<!pattern)
from
正規表現の先読みと後読み
(?<!pattern)
直前に
pattern
がないものに一致する
table:例: (?<!bar)foo
barfoo x
foo o
barxfoo o
barfoox x