Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
class Utils {
static bool isNullOrEmpty(String s) {
return s == null || s == '';
static String stripTags(String s) {
return s.replaceAll(new RegExp('<[^>]*>'), '');
static Set<String> urlMatchs(String s) {
RegExp exp = new RegExp(
return exp.allMatches(s).map((m) =>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.