Created
May 29, 2019 23:13
-
-
Save jrfondren/c66c29d2333d005342c7b59b8092dde0 to your computer and use it in GitHub Desktop.
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
import re | |
let | |
haystack = "example v22" | |
versionRe = re"v(\d+)$" | |
if haystack =~ versionRe: | |
echo "Version: ", matches[0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment