Last active
May 17, 2018 11:32
-
-
Save atreeon/dbb38b6c97bbc16d994e71e27e9cda30 to your computer and use it in GitHub Desktop.
regular expressions dart asterisk
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() { | |
| 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