regex method

bool regex(
  1. String source
)

match string with regex pattern

Implementation

bool regex(String source) => RegExp(source).hasMatch(this);