Skip to content

Instantly share code, notes, and snippets.

@geektutor
Last active May 9, 2020 15:37
Show Gist options
  • Save geektutor/2ab45ad09a4c63dbfd222a88a037a38c to your computer and use it in GitHub Desktop.
Save geektutor/2ab45ad09a4c63dbfd222a88a037a38c to your computer and use it in GitHub Desktop.
void main() {
print(regEx(r'.*\+'));
}
regEx(String text) {
try {
RegExp(text);
return true;
} catch (e) {
return false;
}
}
/*
* You said print True o that's why I didnt return
Helpful Urls - https://regexr.com/3f4vo, https://www.regextester.com/21
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment