isCaseSensitive property
Whether this regular expression is case sensitive.
If the regular expression is not case sensitive, it will match an input letter with a pattern letter even if the two letters are different case versions of the same letter.
final text = 'Parse my string'; var regExp = RegExp(r'STRING', caseSensitive: false); print(regExp.isCaseSensitive); // false print(regExp.hasMatch(text)); // true, matches. regExp = RegExp(r'STRING', caseSensitive: true); print(regExp.isCaseSensitive); // true print(regExp.hasMatch(text)); // false, no match.
Implementation
bool get isCaseSensitive;
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-core/RegExp/isCaseSensitive.html