I am looking Regex formula for Dart, to check either the input is matching specific any string or not which I proved. Example: input is 'butter', and proved strings are ['but','burst','bus']. The program should return false because 'but' is not equal to the 'butter'. But it is returning true as below code.
void main() {
const string = 'Can you give me a butter';
const pattern = r'(but)|(burst)|(bus)';
final regExp = RegExp(pattern);
print(regExp.hasMatch(string.toLowerCase())); //true
}