Last active
December 16, 2020 18:12
-
-
Save xrrocha/a24a180549fa5a5dafa2da66085ec9d4 to your computer and use it in GitHub Desktop.
code block for README-15
This file contains 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
// Examine text looking for matches | |
WORD_REGEX.matcher(text).results() | |
.forEach(match -> { | |
// Second letter | |
final var start = match.start() + 1; | |
// Penultimate letter | |
final var end = match.end() - 1; | |
final var length = end - start; | |
// ... shuffling stuff ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment