Skip to content

Instantly share code, notes, and snippets.

@AndyG
Created February 27, 2018 21:57
Show Gist options
  • Save AndyG/96efce9f30ff2f7f5b013c182ce4fbd5 to your computer and use it in GitHub Desktop.
Save AndyG/96efce9f30ff2f7f5b013c182ce4fbd5 to your computer and use it in GitHub Desktop.
Parser Nefarious Line
for (rule in rules) {
val matcher = rule.pattern.matcher(mutableSource)
if (matcher.find()) {
// Do stuff with the rule that matched the text
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment