|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Answer: How do I get the last occurrance of a word (or words) in a file? |
| ( #11084=categorized answer: print w/ replies, xml ) | Need Help?? |
|
Q&A > regular expressions > How do I get the last occurrence of a word (or words) in a file? contributed by merlyn
By getting the "last" occurrance, I don't know if you want to know the line it's on (as a line number), or the contents of the line. So I'll do both:
season to taste.
|
|
||||||||||||||||||