pattern property Null safety

String pattern

The source regular expression string used to create this RegExp.

final regExp = RegExp(r'\p{L}');
print(regExp.pattern); // \p{L}

Implementation

String get pattern;