Last active
May 9, 2020 15:37
-
-
Save geektutor/2ab45ad09a4c63dbfd222a88a037a38c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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