notBehind static method

Pattern notBehind(
  1. dynamic pattern
)

Negative lookbehind - matches if pattern does not precede

Implementation

static Pattern notBehind(dynamic pattern) {
  final p = pattern is String ? literal(pattern) : pattern as Pattern;
  return Pattern._(
    nodes.Lookaround(dir: 'Behind', neg: true, body: p._node),
    namedGroups: p._namedGroups,
  );
}