Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question
In regular expressions, search for whole words that start with "a", followed by zero or more chars between "d" to "g", and end with "z" (use grep as example to search in file test.txt)?
Answer
grep -w 'a[d-g]*z' test.txt
^^ note the * that comes right after [d-g]

Question
In regular expressions, search for whole words that start with "a", followed by zero or more chars between "d" to "g", and end with "z" (use grep as example to search in file test.txt)?
Answer
?

Question
In regular expressions, search for whole words that start with "a", followed by zero or more chars between "d" to "g", and end with "z" (use grep as example to search in file test.txt)?
Answer
grep -w 'a[d-g]*z' test.txt
^^ note the * that comes right after [d-g]
If you want to change selection, open document below and click on "Move attachment"

5. Regular Expressions
, the , and tie . The brackets have a special significance. They mean to match one character that can be anything from a to i . grep -w 't[i-z]e' Matches the words tie and toe . grep -w 'cr[a-m]<span>*t' Matches the words craft , credit , and cricket . The * means to match any number of the previous character, which in this case is any character from a through m . grep -w 'kr.*n' Matc

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.