Last active
May 17, 2018 13:31
-
-
Save atreeon/6b0e70a6b3ee4e82b949039615614e07 to your computer and use it in GitHub Desktop.
OneByteString from regex split
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 = '**this** and **my other string** please'; | |
var regexAsterisk = new RegExp(r"\*\*(.*?)\*\*"); | |
var splits = sourceText.split(regexAsterisk); | |
for (var split in splits) { | |
print("IsEmpty:" + split.isEmpty.toString() + ":" + split); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment