Skip to content

Instantly share code, notes, and snippets.

@btd
Created December 5, 2011 16:54
Show Gist options
  • Save btd/1434295 to your computer and use it in GitHub Desktop.
Save btd/1434295 to your computer and use it in GitHub Desktop.
How to find begin string not sub seq.
1. (s: String) => Pattern.compile(regex, flags).matcher(text)
2. region(pos, str.length).lookingAt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment