-
-
Save kbbgl/b0a825336781a648f77293fd9c6df512 to your computer and use it in GitHub Desktop.
[match x or inifinte times] #regex
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
# use {x,} to match string with x+ characters | |
echo "hello world reallylongword" | grep -P "\w{6,}" -o # will match reallylongword |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment