Skip to content

Instantly share code, notes, and snippets.

@atreeon
Last active May 17, 2018 11:32
Show Gist options
  • Select an option

  • Save atreeon/dbb38b6c97bbc16d994e71e27e9cda30 to your computer and use it in GitHub Desktop.

Select an option

Save atreeon/dbb38b6c97bbc16d994e71e27e9cda30 to your computer and use it in GitHub Desktop.
regular expressions dart asterisk
void main() {
var sourceText = 'find me **this** and **my other string** please';
var regexAsterisk = new RegExp("\*\*(.*?)\*\*");
var splits = sourceText.split(regexAsterisk);
for (var split in splits) {
print(split);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment