Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

regex last match

Just use "$" to specify matching a pattern at the end of each line.
Example with grep:
grep "pattern$" file.txt
 
PREVIOUS NEXT
Tagged: #regex #match
ADD COMMENT
Topic
Name
3+2 =