Свойство isCaseSensitive
Определяет, чувствителен ли этот регулярный шаблон к регистру.
Если регулярный шаблон не чувствителен к регистру, он будет сопоставлять букву ввода с буквой в шаблоне, даже если эти две буквы — различные регистровые варианты одной и той же буквы.
final str = 'Parse my string'; var regExp = RegExp(r'STRING', caseSensitive: false); final hasMatch = regExp.hasMatch(str); // Has matches. print(regExp.isCaseSensitive); // false regExp = RegExp(r'STRING', caseSensitive: true); final hasCaseSensitiveMatch = regExp.hasMatch(str); // No matches. print(regExp.isCaseSensitive); // true
Реализация
bool get isCaseSensitive;
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-core/RegExp/isCaseSensitive.html