In regular expressions, for example using grep, 'myfile.txt' will match both "myfileqtxt" and "myfile.txt", how do you make it just match "myfile.txt"?
Answer
grep 'myfile\.txt'
^^ i.e. use the escape char "\" before the special char "."
Question
In regular expressions, for example using grep, 'myfile.txt' will match both "myfileqtxt" and "myfile.txt", how do you make it just match "myfile.txt"?
Answer
?
Question
In regular expressions, for example using grep, 'myfile.txt' will match both "myfileqtxt" and "myfile.txt", how do you make it just match "myfile.txt"?
Answer
grep 'myfile\.txt'
^^ i.e. use the escape char "\" before the special char "."
If you want to change selection, open document below and click on "Move attachment"
5. Regular Expressions . character. To match a . you can use the sequence \. which forces interpretation as an actual . and not as a wildcard. Hence, the regular expression myfile.txt might match the letter sequence <span>myfileqtxt or myfile.txt , but the regular expression myfile\.txt will match only myfile.txt . You can specify most special characters by adding a \ character before them, for example, use \[ for an actual [ ,
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised 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.